Getting stuck in lockCanvas() has nothing to do with creating a new Canvas...
On Thu, Jun 23, 2011 at 1:51 PM, Baodong Chen <[email protected]>wrote: > Hi All: > Can anyone be so kind to give me an example to show how to used new > Canvas() to create my own Canvas object > and how to use it to draw something like a Bitmap and the show my > Canvas object on device's display? > I want to do this becasue in my APP, i am doing follows in a native > thread through JNI call: > Canvas c = mSurfacerHolder.lockCanvas() ; > c.dramBitmap(); > mSurfacerHolder.unlockCanvasAndPost(); > > and on some devices,sometimes my APP freezed, and I found my draw > thread is freezed in lockCanvas() call. > > > best regards, thanks! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

