> 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/Bitmap.html

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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to