Hello All, I'm new to Titanium app development.. I have created an app and the purpose of app is a shopping.
Previous work and functionalities:
My App will looks like the image on below link.. Link to app UI
My App has the categories and subcategories
- Subcategories will have the collection of items.
- when the user choses the category, all the subcategories will be shown with the products..
- So User can scroll vertically to view the items in subcategories and scroll horizontally to view the products.
Work i've done
- To solve this, i've used one scrollview as parent for vertical scrolling and inside that, subcategory scrollviews with horizontal scrolling.
Problem
- This was worked perfectly with IOS..
- When i came to Android, it causes the crash on app....and I was confused with the issue.
- Finally i came to know that it was happened because of too many views loaded.
Logs :
I/dalvikvm-heap: Grow heap (frag case) to 16.113MB for 513250-byte allocation [WARN] : KrollProxy: (KrollRuntimeThread) [147,97049] No localized string found for identifier: {categoryid=61, category=Citta del Sole/0-3/Giochi attivi 1+, subcategory=Giochi attivi 1+, description=, age=0-3} [WARN] : KrollProxy: (KrollRuntimeThread) [2,97051] No localized string found for identifier: 0 [WARN] : KrollProxy: (KrollRuntimeThread) [1,97052] No localized string found for identifier: 36132.5 [WARN] : KrollProxy: (KrollRuntimeThread) [472,97524] No localized string found for identifier: {categoryid=60, category=Citta del Sole/0-3/Grandi manovre, subcategory=Grandi manovre, description=, age=0-3} [WARN] : KrollProxy: (KrollRuntimeThread) [1,97525] No localized string found for identifier: 1 [WARN] : KrollProxy: (KrollRuntimeThread) [0,97525] No localized string found for identifier: 34270 [ERROR] : dalvikvm: JNI ERROR (app bug): local reference table overflow (max=512) [WARN] : dalvikvm: JNI local reference table (0xb911cbf0) dump: [WARN] : dalvikvm: Last 10 entries (of 512): [WARN] : dalvikvm: 511: 0xa4cb7360 java.lang.String "enabled" [WARN] : dalvikvm: 510: 0xa57b1b40 org.appcelerator.kroll.runtime.v8.V8Object [WARN] : dalvikvm: 509: 0xa57b1b40 org.appcelerator.kroll.runtime.v8.V8Object [WARN] : dalvikvm: 508: 0xa57b17f8 java.lang.Object[] (1 elements) [WARN] : dalvikvm: 507: 0xa57b1778 java.lang.String "app://alloy/cont... (38 chars) [WARN] : dalvikvm: 506: 0xa56e68a8 ti.modules.titanium.platform.DisplayCapsProxy [WARN] : dalvikvm: 505: 0xa56e68a8 ti.modules.titanium.platform.DisplayCapsProxy [WARN] : dalvikvm: 504: 0xa56e68a8 ti.modules.titanium.platform.DisplayCapsProxy [WARN] : dalvikvm: 503: 0xa56e68a8 ti.modules.titanium.platform.DisplayCapsProxy [WARN] : dalvikvm: 502: 0xa56e68a8 ti.modules.titanium.platform.DisplayCapsProxy [WARN] : dalvikvm: Summary: [WARN] : dalvikvm: 1 of java.lang.Class [WARN] : dalvikvm: 2 of java.lang.Object[] (1 elements) (2 unique instances) [WARN] : dalvikvm: 3 of java.lang.String (3 unique instances) [WARN] : dalvikvm: 1 of ti.modules.titanium.network.HTTPClientProxy [WARN] : dalvikvm: 2 of org.appcelerator.kroll.runtime.v8.V8Object (1 unique instances) [WARN] : dalvikvm: 503 of ti.modules.titanium.platform.DisplayCapsProxy (1 unique instances) [ERROR] : dalvikvm: Failed adding to JNI local ref table (has 512 entries)
Solutions May work(IMO)
- In android, list views are reusable views.. I was thinking to use them.
I would like to get suggestions/ideas from the experienced developers to implement the scenario on my app. please check the image to get exact idea of what the app looks like..
Thanks in advance for your help and valuable time for me..