Android : startActivityForResult() with BACK button functionality
问题 I would like to start a new activity for a result , with startActvityForResult() , but I would like to have the back button working as normal in the new activity. Currently when I invoke a new Activity for result, nothing happens when I press the back button in the new Activity. I tried something like this: @Override public void onBackPressed() { setResult(0); super.onBackPressed(); finish(); } in the new Activity, but it didn't work. Still nothing happens when the back button is pressed. Is