Depends on the size of the bitmaps.

If they are for display only, i would advise loading them with RGB_565
(not ARGB_8888). This way, an image with 'width' by 'height' pixels
will take up 'width*height*2' MByte.

Your app's total available memory is either 16MByte (1st gen phones)
or 24MByte (2nd gen phones, larger screens).

In my app, i allow about half of the available memory for bitmaps,
i.e. 8MByte or 12MByte.But this is pushing it....


On Jun 30, 11:26 am, olivier <olivier.stev...@treebux.fr> wrote:
> Dear,
>
> I manage a cache of bitmap.
> Do you have an advise to fix the maximum size of it ?
>
> Regards,
>
> Olivier

-- 
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

Reply via email to