if I call Application.Quit() or System.exit(0) or Android.os.Process.killProcess(Android.os.Process.myPid()) (use java Plugin) or get current activity from “com.unity3d.player.UnityPlayer” and call finish() then application has successfully closed. but after 5-10 seconds shows exception “app_name has stoped unexpectedly. please try again.” on other android-phones all ok. how to correctly close the application? Help please.
I use Application.Quit on my Nexus S and I don’t get any errors. There is probably something specific to your game which is causing the error. To narrow it down I would recommend creating an empty project which calls Application.Quit() and see if that has the same problem.
In empty project all work. But my project successfully worked on LG Optimus One, sony ericsson xperia x10 and HTC Desire HD. I can not find a bug in my code because it is probably due to memory leaks, and each time has different causes. For example I have error if call Screen.width from static function.