Re: [android-developers] How to used new Canvas()?

2011-06-25 Thread Baodong Chen
why this happens? is this an android system's bug or am i using SurfaceView in a wrong way? On Fri, Jun 24, 2011 at 5:11 AM, Dianne Hackborn wrote: > Getting stuck in lockCanvas() has nothing to do with creating a new > Canvas... > > On Thu, Jun 23, 2011 at 1:51 PM, Baodong Chen > wrote: >> >> H

Re: [android-developers] How to used new Canvas()?

2011-06-23 Thread Dianne Hackborn
Getting stuck in lockCanvas() has nothing to do with creating a new Canvas... On Thu, Jun 23, 2011 at 1:51 PM, Baodong Chen 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

[android-developers] How to used new Canvas()?

2011-06-23 Thread Baodong Chen
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 t