here is a part of my code, HELP ME
i have do the changing position in onDraw().
public class MainActivity extends Activity implements OnTouchListener{
public MainView GameView;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mGameView=new MainView(this);//MainView is my class extends View
setContentView(mGameView);
new Thread(){
public void run(){
try{
while(true){
mGameView.invalidate();//i think use this function can do onDraw(),and chang the postion
sleep(1000);
}
}
catch(Exception e){
e.printStackTrace();
}
}
}.start();
}



