android - Trouble going back to main activity -



android - Trouble going back to main activity -

i'm new android programming , making game. problem dealing multiple activities on stack. have gameover activity phone call when player dies. activity, want homecoming main menu on hitting button. problem when go main menu, , click again, goes gameover screen. have override on in main menu end application? or there improve way this?

typically if want activity removed history stack phone call finish()

the thing is, unless "game over" started main menu should not go other out of game when press main activity, how many screens , how getting each one

main calls startactivityforresult(new intent(a,my.class),intentid); myclass calls etc.

android android-activity android-intent stack

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -