[android-developers] Re: Don't understand how to use SurfaceView for my game, have it working with nomrla View.

2009-06-04 Thread Robert Green
If you only need to draw in response to user input, then you just get the canvas and draw after the user inputs. Otherwise you need a thread that runs a main loop. Either way, when you do your draw, you do this. Canvas c = surfaceHolder.lockCanvas(); doDraw(c); surfaceHolder.unlockCanvasAndPost

[android-developers] Re: Don't understand how to use SurfaceView for my game, have it working with nomrla View.

2009-06-04 Thread Mike
surfaceview doesn't use onDraw. check the lunar lander sample app in the sdk. it uses surfaceview. On Jun 2, 6:31 pm, klirr wrote: > Problems with using SurfaceView, I don't understand how to draw to it. > It has to be done manually? How? > > package com.android.WWS; > > import android.app.Act

[android-developers] Re: Don't understand how to use SurfaceView for my game, have it working with nomrla View.

2009-06-02 Thread hina naz
* **visit my site and earn more money** * * http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * ** http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/* * **http://latesttechnologyinfo.com/** * * http://