Lisa,

Below is a complete guess, so it's worth what you paid for it:) I suspect
the Canvas is referencing the bitmap while trying to save state in onPause.
This is because when the activity resumes it needs to paint it back. Do you
want to move it to onStop?

Best,

Prakash
On Oct 14, 2010 8:36 AM, "Lisa" <lpk...@gmail.com> wrote:
> thanks for answering.
>
> I scale the Bitmap, butthe same time get the error. (u_u,)
>
> I call before loading the bitmap and also in the onPause and
> onDestroy.
> but when I call on the OnPause I get the following error:
>
> 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)
>
> I'm doing wrong?
> please, help me.┌(_ _)┐
>
> Thanks a lot for all your replies. m(_ _)m
> sorry for my bad English. (〃 ̄_ ̄〃)~゚
>
> --
> 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

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