[Solved] Exit app on double tap (android app)
in c# void Update(){ if (Input.GetKeyDown(KeyCode.Escape)) Application.Quit(); } or in .js function Update(){ if (Input.GetKeyDown(KeyCode.Escape)) Application.Quit(); } This is the function for exit app when back button pressed, if you want to exit the app when back button pressed twice, implement the logic in the java code you have posted in question into equivalent code … Read more