Hi Kofa,

I guess you have a memory leak here. Please make sure that all your
data is cleaned up, i.e. no hard references are left.
Try to call the GC manually and see how much it cleans up.

Tip: Override the finalize() method of your activity and print out a
log message there to see if the activity really is cleaned up later.

Regards
Marc Reichelt   ||   http://www.marcreichelt.de/

On 15 Apr., 16:51, Kofa <[email protected]> wrote:
> Hi, I have some headache with an error about the system going out of
> memory.
> When I run the game fo first time there's no problem, but when i quit -
> with finish();- and then start the app again, it gives me an error.
>
> The LogCat error says:
>
> VM won't let us allocate 5529600 bytes
> ....
> Caused by: android.view.InflateException: Binary XML file line #14:
> Error inflating class java.lang.reflect.Constructor
> ....
> Caused by: java.lang.reflect.InvocationTargetException
> ....
> Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget.
>
> it's strange because if I finish the activity and start it again
> without exiting the app then it's everything OK....but when i finish
> the app and push the button to load that activity... it crashes with
> this error and come back to the main menu... please any help will help
> =P. thx in advance!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to