Hi,

My application uses a single activity to switch between different
views. I premise I'm loading a good amount of bitmaps in one of this
view (say the gamescreen view) constructor but I recycle everything on
the onDetachedFromWindow method. All the Bitmaps are static and most
of them loaded with BitmapFactory.decodeResource method.

Furthermore I'm using a gallery wich content is a simple layout with
eight imagebuttons.

I know all the complications using this widget and all the risks of
using static bitmaps, but, I guess my problem does not entail them
because my application is running well if I try to switch between
these two view (and I've tried to do it about 30 times without
crashes!!!) but when I pause and resume the application two times
(pause->resume->pause->resume) I run out of memory, and often without
the crash message (it just stays on the actual view).

Thanks.

-- 
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

Reply via email to