I'm trying to create a game.
I have a GameView which extends View. I would like this view is redrawn every 1/60 seconds like with SDL for example.
I created a Thread with a run method with a this :
Using java Syntax Highlighting
- while(true){
- myGameView.invalidate();
- Thread.sleep(x); // 1/60 second
- }
Parsed in 0.029 seconds, using GeSHi 1.0.8.4
But the application crash when I start this Thread...
How can I do this ?


