Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Application failing to quit failing to pause

Discussion in 'Android' started by citycrusher, Jul 5, 2013.

  1. citycrusher


    Sep 26, 2010
    I am a mac developer and ported my first project to Android.
    Good news is my app runs fine on basically any Android device!

    My only problem now is with the pausing/quitting function of Android devices.

    So please help me solve these two issues:

    1. My application is not paused on Hold mode.

    2. My application is unable to terminate the application by the BACK key

    I believe what I have to do is modify the androidmanifest XML file to handle these two functions? I did not edit this XML file at all (from whatever it is that Unity autogenerates somewhere) so need some help what to do next. To be truthful.... I do not even know how to modify the XML file, and I am not an XML coder. Actually, I don't even know how to locate this file to make a change to it? :confused:

    I am imagining there is standardized generic code which I can add a snippet or two and job is done.... but I can't find a resource that covers my problem.

    Please explain simply how I can accomplish this!
  2. frankrs


    Aug 29, 2009
    its no problem goes like this put this code onto any object in your scene

    function Update(){