I am making a game and I can not understand how to keep some state from my custom view object My game starts with a title screen activity that offers a custom view that launches the game screen activity.
if (playButtonPressed) {gameIntent = new Intent (myContext, GameActivity.class); MyContext.startActivity (gameIntent); }
The game screen also has a custom view, and I have View Setup to save the Variables in GameView.onPause () and I can retrieve them from game activity, but How can I do it again to set up the game's facility to go through headline activity?
Have you checked the options for storage data with Android on this link?
Comments
Post a Comment