Proper way to exit game on Android

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

private void ProcessBackClick()
    {

        if (CCDirector.SharedDirector.CanPopScene)
        {
            CCDirector.SharedDirector.PopScene();
        }
        else
        {

                    Exit();

        }
    }
does not kill the running audio.
Coordinator
Mar 19, 2014 at 4: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 7: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
Coordinator
Mar 21, 2014 at 5: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.