- Home /
UnityPlayer quit is killing both itself and the Android app
Hello,
I'm struggling with this problem.
I have exported my Unity game as a Google Android project, and put it inside my Android app.
Everything works fine, except when I call Application.Quit(), which closes the Unity app and the Android app.
I tried some solutions, like adding android: process=":unityapp" in the GoogleUnityActivity activity declaration in the AndroidManifest.xml.
This doesn't work, the app behind still closes too.
What can I do? That's pretty critical.
Thanks.
Ins$$anonymous$$d of calling Application.Quit(), is it possible to call something from within Unity that invokes a method in the Android app which then kills the Unity app from inside the Android app?
Sorry think I posted the wrong link. Too many tabs open!
I think it suggested stopping the activity.
Your answer
Follow this Question
Related Questions
Resize GUI Button (linked to website) ?? 1 Answer
Wp8 an Android 0 Answers
UI Button when build to android function does not work 0 Answers
Does Android delete PlayerPrefs when Updating the App? 2 Answers
Android apps overwrite each other 1 Answer