This project is read-only.

Proper way to exit game on Android

Topics: Actions and Control Logic, Android
Mar 19, 2014 at 1:27 AM
What is the recommend exit a running application method below from angry ninjas

private void ProcessBackClick()

        if (CCDirector.SharedDirector.CanPopScene)


does not kill the running audio.
Mar 19, 2014 at 5:36 PM
You have to manage your own audio state. When the game enters the background you need to pause your background music. Then when it resumes, you resume your audio.
Mar 20, 2014 at 8:35 PM
i thought i was doing omitting/something wrong due to the different outcomes when the home button and back button events.

thanks for the clarification
Mar 21, 2014 at 6:54 PM
Back is typically for navigating through the application. You would hook up the back button to the scene navigation.

Home is "pause the game". That's how I understand it anyway. When I want to exit an android app I tap the Home button which typically takes me down to the home android page. I may be wrong about that behavior.