You might need to scale the Bitmap so that it doesn't use of a lot of
memory.

Follow this link, you might get an idea here.
http://stackoverflow.com/questions/3331527/android-resize-a-large-bitmap-file-to-scaled-output-file

On Thu, Oct 14, 2010 at 5:42 PM, Lisa <lpk...@gmail.com> wrote:

> please help me. 。゜゜(´□`。)°゜。
>
> I am using android 1.6.
>
> my code to release a bitmap looks like this:
>
> if (imageBG != null) {
> imageBG.recycle();
>    imageBG = null;
>
> }
>
> but when I do get to the following error: (u_u,)
>
> 10-14 11:36:52.069: ERROR/AndroidRuntime(618): Uncaught handler:
> thread main exiting due to uncaught exception
> 10-14 11:36:52.089: ERROR/AndroidRuntime(618):
> java.lang.RuntimeException: Canvas: trying to use a recycled bitmap
> android.graphics.bit...@437d8e60
> 10-14 11:36:52.089: ERROR/AndroidRuntime(618):     at
> android.graphics.Canvas.throwIfRecycled(Canvas.java:955)
> 10-14 11:36:52.089: ERROR/AndroidRuntime(618):     at
> android.graphics.Canvas.drawBitmap(Canvas.java:1044)
> 10-14 11:36:52.089: ERROR/AndroidRuntime(618):     at
> android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:291)
> ...
>
> What should I do? ~(・・?)
> I do not know how to release memory. 。゜゜(´□`。)°゜。
>
> please, help me.┌(_ _)┐
>
> Thanks a lot for all your replies. m(_ _)m
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Kumar Bibek
http://techdroid.kbeanie.com
http://www.kbeanie.com

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