On pressing the back button, I\'d like my application to go into the stopped state, rather than the destroyed state.
In the Android docs it states:
Use the following code:
public void onBackPressed() { Intent intent = new Intent(); intent.setAction(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_HOME); startActivity(intent); }