Force Close After First Run
Solution 1:
Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
This means that the device has gone out of memory and it is being force closed.
Now, since you say that the application is running for the first time but not henceforth, I believe that you are not freeing the resources. Bitmaps can sometime take up a lot of space and if you are persisting them in the memory, I would not be surprised if the device goes OOM. Different devices have different specs for memory and that is the reason it is running on some but not on others.
So, my suggestion would be to clear the Bitmaps and the other storage that you are using for temporary purposes.
If that still does not solve your problem, post the code where you are handling the images and we will try to see if there is a more memory efficient way of what you are doing.
Good luck!
Post a Comment for "Force Close After First Run"