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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---