Most of my apps use a bitmaps in a SurfaceView class run by a thread, and some of the bitmaps are as big as the current screen resolution. I have noticed that if the activity is on pause Android may automatically recycle the big bitmaps to free the memory. So when one is in an app and clicks on home button and then opens the same app again, it may crash because the bitmap is no longer there.
From your experience what would be the best method to deal with this?
I haven’t dealed with such a situation, but my first try would be to call inside onResume
and reinstantiate in case it returns true