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
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
* **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://
3 matches
Mail list logo