title: Android option menu not working
body: <p>As the question says, its not working. When I press the menu button, nothing comes out.</p>
  
  <p>This is the menu Activity:</p>
  
  <pre><code>public class AndroidMenuActivity extends Activity{
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      // TODO Auto-generated method stub
      super.onCreate(savedInstanceState);
      setContentView(R.layout.viewphoto);
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      // TODO Auto-generated method stub
       super.onCreateOptionsMenu(menu); 
       MenuInflater menuInflater = getMenuInflater();
       menuInflater.inflate(R.menu.menu, menu);
       return true;
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      // TODO Auto-generated method stub
      switch(item.getItemId()){
          case R.id.edit:
              Toast.makeText(getApplicationContext(), "edit selected", Toast.LENGTH_SHORT).show();
              Intent i = new Intent(getApplicationContext(), PhotoFlashActivity.class);
              startActivity(i);
              return true;
          default:
              return super.onOptionsItemSelected(item);
      }
  }
  }
  </code></pre>
  
  <p>and a very small menu.xml</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;
  &lt;item
      android:id="@+id/edit"
      android:title="Edit"/&gt;   
  
  &lt;/menu&gt;
  </code></pre>
  
  <p>I don't know what's wrong, the tutorials that I've looked at didn't mention adding the activity to manifest file so I'm not sure whether I have to. And even when I did it doesn't work as well. I've tried cleaning the project but that doesn't work either. </p>