[android-developers] Re: Anyway to pre allocate memory for a Bitmap?

2012-04-12 Thread JackN
On Wednesday, April 11, 2012 8:30:41 AM UTC-7, Brian wrote: I did eventually figure out how to pre-allocate a Bitmap. After looking at the documentation more closely. I realize you can create a ByteArray, and the BitmapFactory has option for using a ByteArray to store the bitmap,

[android-developers] Re: Anyway to pre allocate memory for a Bitmap?

2012-04-11 Thread Brian
I did eventually figure out how to pre-allocate a Bitmap. After looking at the documentation more closely. I realize you can create a ByteArray, and the BitmapFactory has option for using a ByteArray to store the bitmap, instead of allocating its own memory. You can then reuse ByteArray for

[android-developers] Re: Anyway to pre allocate memory for a Bitmap?

2010-09-30 Thread Brian
bump On Sep 27, 5:58 pm, Brian zootsuitbr...@gmail.com wrote: 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

[android-developers] Re: Anyway to pre allocate memory for a Bitmap?

2010-09-27 Thread Yahel
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

[android-developers] Re: Anyway to pre allocate memory for a Bitmap?

2010-09-27 Thread Brian
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.