Allocating HEAP memory on demand

view story

http://stackoverflow.com – I have an android app in which i make a call to obtain lots of data, i was receiving the OutOfMemoryException error so I investigated and found the solution: Add android:largeHeap = true, this works great, I no longer get errors BUT i also read this is not good because it may block the users other apps. Is there a way to assign a fix number of HEAP the app can use?. While debugging with logcat I saw that it wont be much what I would need extra from the base or default HEAP space that it is provided, but it's large enough to cause the OutOfMemoryException. New to android and trying to figure (HowTos)