I have a app in which at Home Screen onBackPressed() i have used System.exit() but nither my app closes infact it gives me forceClose.
Home.Class
@Override
public void onBackPressed() {
super.onBackPressed ();
System.exit (0);
}
Use
finish()
method instead ofSystem.exit (0);