title: Android: Start a new activity from menu item
body: <p>I'm Trying to open a second screen for my application. The user have to click on a menu item and then the screen must open. But what i try it always just ignores the rule after the case statement.</p>
  
  <pre><code>    public boolean onOptionsItemSelected(MenuItem item) {
      switch (item.getItemId()) {
          case R.id.OpenScreen:  startActivity(new Intent(this, SecondScreenActivity.class));;
                              break;
      }
      return true;
  </code></pre>
  
  <p>I've also added the activity to AndroidManifest.xml inside the  tag.</p>
  
  <p>Any help will be apreciated</p>
  
  <hr>
  
  <h2>Solution</h2>
  
  <p>I had the <code>finish()</code> in the constructor of the new class.</p>