I can't seem to be able to use the toast notification properly. In all of my other apps it worked great but in this one it doesn't. In this app I started using openGL with a framework from a book named "Beginning Android Games" and now I don't seem to be able to use the toast notification. I have no idea what to do... It fails because of the context. How can I make a context that will work? Please help me! this is part of my code because the code is too long:
private void updateReady() {
Coin.number = 0;
if (game.getInput().getTouchEvents().size() > 0) {
state = GAME_RUNNING;
Coin.number = 0;
Num.number = 0;
Toast.makeText(this, "Start!", Toast.LENGTH_SHORT).show();
}
}
When I put the line:
Toast.makeText(this, "Start!", Toast.LENGTH_SHORT).show();
in the class that extends Activity and run it it just doesn't do anything... I tried to make it into a method and call it from other classes but it got a force close...