tags:

views:

58

answers:

1
  1. i am using json to to receive data from the webservice, creating text to json object is resource hungry operation.
  2. i have to load images from web, i am lazy loadig images in async process how can i compress and make the cache ??
  3. after crash how can i stop re-launching activity ?
  4. how can i know how much memory remaining and andoird OS will kill my object.
+1  A: 

You can cache your images using a pool of SoftReferences (http://developer.android.com/intl/de/reference/java/lang/ref/SoftReference.html). This will allow the OS to clean them up if it's running out of memory while still allowing you to access them. This should help with #2 and #4, but I am not sure what you mean by #3.

CaseyB
for point 3, when application crash "force close" button appears if you close the application android os re-launch the activity.
Faisal khan
Is that bad? I mean does your app force close right away, so there is no way to get out of it?
CaseyB