Thursday, September 30, 2010

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

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 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate