Store Every Activity obj in a Arraylist. Whenever if you want to exit the app call finishing each of activity. And then call the fallowing.
try{
android.os.Process.killProcess(android.os.Process.myPid());
}cathch(Exception e){
}
Note: Execute the above after finishing all the acivities, Otherwise the app may be getting restarted without intervention of user.
try{
android.os.Process.killProcess(android.os.Process.myPid());
}cathch(Exception e){
}
Note: Execute the above after finishing all the acivities, Otherwise the app may be getting restarted without intervention of user.
No comments:
Post a Comment