title: Pressing the "go back" button closes the application
body: <p>I'm currently moving slowly but steady forward in the making of a Android application and Im currently learning how to create a new window and switch to it. This is going all well but I have one small problem. When I pressing the "go back" button closes the application even if I have choosed to go back when just that button is pressed.</p>
  
  <pre><code>@Override
  public void onBackPressed() {
      finish();
      return;
  }
  </code></pre>
  
  <p>Have I missed something or what?</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>EDIT</strong></p>
  
  <pre><code>@Override
  public boolean onCreateOptionsMenu(Menu menu)
  {
      MenuInflater menuInflater = getMenuInflater();
      menuInflater.inflate(R.menu.main, menu);
      return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item)
  {       
      // Handle item selection
      switch (item.getItemId())
      {
      case R.id.menuItem1:
          setContentView(R.layout.about);
          return true;
      case R.id.menuItem2:
          System.exit(0);
          return true;
      default:
          return super.onOptionsItemSelected(item);
      }
  }
  </code></pre>
  
  <p><strong>EDIT 2</strong>: About.java</p>
  
  <pre><code>package weather.right;
  
  import weather.right.now.R;
  import android.os.Bundle;
  
  public interface About {
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.about);
      }
  
  }
  </code></pre>