Possible Duplicate:
Android: Strange out of memory issue while loading an image to a Bitmap object
bitmap size exceeds Vm budget error android
I'm trying to load a big bitmap, about 1500x1000 pixels
InputStream is = mngr.open( "myBitmap.png");
Bitmap bit = BitmapFactory.decodeStream(is)
Making the bitmap smaller or sampling it isn't a good idea, because
I need it in its original size.
this error happens about 20% of the times, i.e. about 80% times it loads fine.
What do you think would be the best way to solve this? Maybe putting it into a loop, like can't load -> try again ?
Thanks!