title: Android, How to create option Menu
body: <p>Here I tried to make option menu, but menu is not displaying on screen, so please guide me where am I doing mistake...</p>
  
  <p>MenuTest.java</p>
  
  <pre><code>public class MenuTest extends Activity {
     @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      MenuInflater inflater=getMenuInflater();
      inflater.inflate(R.menu.more_tab_menu, menu);
      return super.onCreateOptionsMenu(menu);
  
  }
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      switch(item.getItemId())
      {
      case R.id.feeds:
          break;
      case R.id.friends:
          break;
      case R.id.about:
          break;
      }
      return true;
  }
  }
  </code></pre>
  
  <p>And my XML file is more_tab_menu.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;menu
  xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item
      android:id="@+id/feeds"
      android:title="Feeds"/&gt;
  &lt;item
      android:id="@+id/friends"
      android:title="Friends"/&gt;
  &lt;item
      android:id="@+id/about"
      android:title="About"/&gt;
  &lt;/menu&gt;
  </code></pre>
  
  <p>Please guide me, </p>