text:  on How to Draw a 2D Object in Android With a Canvas2014-12-18T16:27:27+00:00 nice2014-02-25T15:03:37+00:00keenvery nice nice example!! thanks!!2014-02-20T20:15:50+00:00PauloVery nice example!! thanks!! didn't provide the source code and didn't both2014-02-02T00:38:50+00:00SighYou didn't provide the source code and didn't bother trying the second set of samples. Not to mention this is almost a copy of the LunarLander sample that can be downloaded via the android sdk. Good job. is very nice example 2014-01-08T23:18:07+00:00Ali (Iran)thanks,it is very nice example Dude nice example I have also found a good e2013-10-19T11:52:23+00:00Android ExampleHey Dude nice example I have also found a good example Camera Photo Capture And Show Captured Photo On Activity canvas.restore() call has to be matched by a c2013-09-05T18:18:25+00:00NelsonThe canvas.restore() call has to be matched by a corresponding canvas.save(). There's no save() method call in this example, so copy & pasters beware! BubbleSurfaceView in the animated example stil2013-08-19T19:47:20+00:00Taylorthe BubbleSurfaceView in the animated example still needs to have the getHolder. addCallback(this) or sh.addCallback somewhere. Otherwise you'll just get a blank screen., The program keeps crashing when the phone 2013-07-17T00:30:53+00:00ToshHello, The program keeps crashing when the phone changes orientation or when i exit the program . Is there something we need to implement in onResume/ onPause methods to avoid this? . it's nice example .2013-04-25T14:33:26+00:00Mahmoud thanks . it's nice example . tutorial. I appreciate the detail. There is 2013-03-27T22:45:37+00:00Mark ZanfardinoGreat tutorial. I appreciate the detail. There is one addition required in order to get this example to build. The variable ctx used to hold the context in BubbleSurfaceView constructor (and later referenced when passed as a parameter to Toast.makeText) could not be resolved to a variable. I added the following to my class: public class BubbleSurfaceView extends SurfaceView implements SurfaceHolder.Callback { ... private Context ctx = null; .... } After which ctx could be defined and the project builds. NOTE: Originally I attempted to define ctx in BubbleSurfaveView as: public BubbleSurfaveView(Context context) { ... Context ctx = context; ... } However, as expected, this created a local context for ctx which A) is never referenced and B) fails to resolve for BubbleThread constructor or the Toast.makeText call.