My question is when I click the “Exit” button through our application It need to go to Phones’s Home screen.I have Tried like this
public void onExitAction(View botton){
// finish();
// super.finish();
// System.runFinalizersOnExit(true)
//android.os.Process.killProcess(android.os.Process.myPid());
System.exit(0);
}
Not working.
When I put finish() its closing that particular activity & its go to previous screen.
seconds one is When we exit the system need to remove SharedPreferences also?
Please help me on this…
Thanks in advance
1 Answer