I Found some codes for quit an Android application programatically. By calling any one of the following code in onDestroy() will it quit application entirely?
System.runFinalizersOnExit(true)
(OR)
android.os.Process.killProcess(android.os.Process.myPid());
I dont want to run my application in background after clicking quit button.
Pls suggest me can i use any one of these code to quit my app? If so which code can i use? Is it good way to quit the app in Android?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…