I am developing a game for Android for Android. I know that I can apply the screen directly to my game using libgdx but I want to implement the same activities for the menu screen etc. Okay, so ... my problem That's what I want to get back to the menu activity from the game activity by pressing the back button, I have an activity such as the menu screen with the same widget, like "Start Game", "Score List" and And "Exit Game" Now When I press "start playing", the button launches the main game square and I can play, but when I press the back button, I want to go back to the main menu but it is not. It has such a behavior, but when the menu screen comes back and I restart the "Exit Game" game screen and "Exit game" does not work! How can I fix that problem? Is there any method to get an event from any other activity (like back button was pressed)? Thanks guys!
Comments
Post a Comment