title: How to go back from native Android settings screen?
body: <p>In my app, the user goes from <code>ActivityA</code> to <code>ActivityB</code>. <code>ActivityB</code> displays an <strong>NFC Settings</strong> button. When the user clicks that button, this code is executed to show the native NFC Settings screen:</p>
  
  <pre><code>Intent intent;
  if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.JELLY_BEAN) {
    intent = new Intent(android.provider.Settings.ACTION_NFC_SETTINGS);
  } else {
    intent = new Intent(android.provider.Settings.ACTION_WIRELESS_SETTINGS);
  }
  startActivity(intent);
  showToast("Press Back button when done");
  </code></pre>
  
  <p>The problem I'm having is that when the user is viewing the native NFC Settings screen and presses the device's back button, they are taken all the way back to <code>ActivityA</code>.</p>
  
  <p>Is there a clean way to solve this problem so that the user goes back to <code>ActivityB</code>, as required/expected?</p>