title: Android Back Button Doesn't Return to Previous Activity
body: <p>I have an app that has two activities: MainActivity and SettingsActivity. The MainActivity has a menu with a single Settings menu item. When this menu item is clicked, it launches the SettingsActivity with an intent. After the activity starts up, I click the back button in the top left corner and nothing happens. I assumed since I started the activity using an intent, the activity stack would be managed automatically. I want to return to the MainActivity. Am I wrong in this assumption?</p>
  
  <p><strong>MainActivity.onMenuItemSelected</strong></p>
  
  <pre><code>public boolean onMenuItemSelected(int featureId, MenuItem item) {
      int itemID = item.getItemId();
  
      if(itemID == R.id.settings) {
          Intent intent = new Intent(this, SettingsActivity.class);
          startActivity(intent);
      }
  
      return true;
  }
  </code></pre>
  
  <p><strong>SettingsActivity</strong></p>
  
  <pre><code>public class SettingsActivity extends PreferenceActivity {
  
      public static final String TEST = "test";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          addPreferencesFromResource(R.xml.preferences);
      }
  }
  </code></pre>