- Home /
how to reload level on resuming android app
Hi, I'm currently developing my first android game and when you use the home button to pause/exit the app and resume the app via its icon it loads up in the level where you left off. this doesn't make sense for the type of game I'm creating so what I'm asking is how do you reload the level on resuming the app?
I've been experimenting with the onApplicationFocus function but I'm very new to this so I don't really know what i'm doing.
Answer by oferei · Jun 24, 2013 at 04:46 PM
It's been a while since the question was asked, so this one is for future seekers...
You can detect when the app is paused or resumed using OnApplicationPause.
Your answer
Follow this Question
Related Questions
Unity Android Suspend/Resume and Quit behaviour 1 Answer
Android - OnPause() and OnResume() not working with OnApplicationFocus or OnApplicationPause? 1 Answer
Restart App on iOS and Android 0 Answers
Android back button / Pause and exit game 0 Answers
Restoring Unity3d Android application with another activity on top 1 Answer