Hi everybody
I am having a problem with the BitmapFactory:
this is my function, that reads a stream, and returns a bitmap:
static Bitmap getBitmap(InputStream is) throws IOException
{
Bitmap bmp=null;
//do some stuff...
bmp=BitmapFactory.decodeStream(is);
return bmp;
}
after calling it a few times, it crashes giving me the following error:
ERROR/(1329): VM won't let us allocate 215488 bytes
ERROR/AndroidRuntime(1329): java.lang.OutOfMemoryError: bitmap size exceeds VM budget
I am counting the memory used so far, and it's only 395328 bytes, so I am sure there must be something else...
any ideas?
Thanks


