Application failing to quit failing to pause

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? :face_with_spiral_eyes:

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!

its no problem goes like this put this code onto any object in your scene

function Update(){
if(Input.GetKeyDown(“escape”){
Application.Quit();
}
}