i am making a game on android.. i have a main activity..where i have made my main menu in a void menu() and just called it in on create
menu();
in that the play button has a on clicklistener..
public void onClick(View v){
//if play is pressed
setContentView(new gamescreen(this));
}
this works fine and i can play te game as welll... but now i have a gameover screen designed in main activity as well.. when in surface view te game is over...i want this gameover screen to appear how do i do it?