diff --git a/Assets/RothenburgAR/Scripts/UI/InputManager.cs b/Assets/RothenburgAR/Scripts/UI/InputManager.cs index 7a836d8..57278fe 100644 --- a/Assets/RothenburgAR/Scripts/UI/InputManager.cs +++ b/Assets/RothenburgAR/Scripts/UI/InputManager.cs @@ -34,7 +34,11 @@ namespace RothenburgAR.UI if (Input.GetKeyDown(KeyCode.Escape)) { - Application.Quit(); + if (Application.platform == RuntimePlatform.Android) + { + AndroidJavaObject activity = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic("currentActivity"); + activity.Call("moveTaskToBack", true); + } } } diff --git a/RothenburgAR.apk b/RothenburgAR.apk index a72be20..940c209 100644 Binary files a/RothenburgAR.apk and b/RothenburgAR.apk differ