I'm developing a game and i've ran into some questions about saving and resuming the game. Let's say i have 10 animated sprites drawn every frame (which move side to side) and everytime i press the home button or back button and then go back to my game, it starts drawing the sprites at the starting position rather than in the position before the back/menu press.
Thanks for the reply's.
Regards, J.
Be sure to check this link: Data Storage
You can't store your data using Bundle, cause Bundle is storing data only when the application is running, so when your application is destroyed all information from Bundle will be lost. The way that I'm using is Shared Preferences, it's a simple and comfortable way to solve your problem. You can read more about this following the link above. Hope this was helpful to you. Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With