and how would I reload them with the contents of png from the SD card? On Sep 27, 4:31 pm, Yahel <kaye...@gmail.com> wrote: > > Hello is there any way to pre allocate the memory required for a > > bitmap. Android's memory model is making it very difficult for me to > > cache images I need to cache. > > You can simply create your bitmaps using one of the various : > > Bitmap.createBitmap > > http://developer.android.com/intl/de/reference/android/graphics/Bitma... > > This will create bitmaps at the size you want, holding up memory, and > then you just have to reload them from wherever they are using > BitmapFactory. > > Yahel
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en