The problem is your line Thread.currentThread().sleep(1000);//sleep
for 1000 ms

I believe with SurfaceView you have to draw your whole view on every
screen refresh. You just need to loop as fast as possible and the
system will throttle the speed in the calls to lockCanvas(). By
sleeping for 1 second you are failing to provide a canvas for every
refresh so the screen appears blank.

What I don't know is whether there is any guidance on how quickly you
have to get through your loop, i.e. what the maximum refresh rate is
--~--~---------~--~----~------------~-------~--~----~
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