almontgreen Active Member Licensed User Longtime User Oct 22, 2013 #1 I have many large bitmaps I need to load into memory cache and the current application cache size is less than 1/2 what I need. I have lots of memory and have read that with Android ver. 2.2 (which I am running) that this is possible to change. Is it in the Manifest file? Note: I am NOT running any other applications on my device (MiniPC) so I'm not worried about crashing other apps. I have experimented extensively with the Cache library ver. 1.36 and that is how I determined I did not have nearly enough memory allocated to my application which shows bitmaps that have been cached to memory.
I have many large bitmaps I need to load into memory cache and the current application cache size is less than 1/2 what I need. I have lots of memory and have read that with Android ver. 2.2 (which I am running) that this is possible to change. Is it in the Manifest file? Note: I am NOT running any other applications on my device (MiniPC) so I'm not worried about crashing other apps. I have experimented extensively with the Cache library ver. 1.36 and that is how I determined I did not have nearly enough memory allocated to my application which shows bitmaps that have been cached to memory.
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2013 #2 Starting from Android 3.0 you can set the following attribute: Code: Copy SetApplicationAttribute(android:largeHeap,"true") http://developer.android.com/guide/topics/manifest/application-element.html#largeHeap There is nothing that you can do on older versions that will increase the process maximum available memory. Upvote 0
Starting from Android 3.0 you can set the following attribute: Code: Copy SetApplicationAttribute(android:largeHeap,"true") http://developer.android.com/guide/topics/manifest/application-element.html#largeHeap There is nothing that you can do on older versions that will increase the process maximum available memory.
almontgreen Active Member Licensed User Longtime User Oct 22, 2013 #3 Erel said: Starting from Android 3.0 you can set the following attribute: Code: Copy SetApplicationAttribute(android:largeHeap,"true") http://developer.android.com/guide/topics/manifest/application-element.html#largeHeap There is nothing that you can do on older versions that will increase the process maximum available memory. Click to expand... Would you do that in the Sub Globals and what library do you have to load? Sorry, if that info is in the link... I'll read it. Upvote 0
Erel said: Starting from Android 3.0 you can set the following attribute: Code: Copy SetApplicationAttribute(android:largeHeap,"true") http://developer.android.com/guide/topics/manifest/application-element.html#largeHeap There is nothing that you can do on older versions that will increase the process maximum available memory. Click to expand... Would you do that in the Sub Globals and what library do you have to load? Sorry, if that info is in the link... I'll read it.
Erel B4X founder Staff member Licensed User Longtime User Oct 22, 2013 #4 You should add this line to the manifest editor. Upvote 0
almontgreen Active Member Licensed User Longtime User Oct 22, 2013 #5 Brilliant! It works. Thanks so much Erel, I am so glad I bought Basic4Android as it cut the development for my app by months! Upvote 0
Brilliant! It works. Thanks so much Erel, I am so glad I bought Basic4Android as it cut the development for my app by months!
Informatix Expert Licensed User Longtime User Oct 22, 2013 #6 SetApplicationAttribute(android:largeHeap,"true") works only with Android versions >= 3 Upvote 0