title: Android, How to create Context Menu...
body: <p>Here i wrote some code but not getting output..
  Please tell me why is not displaying that context menu, where am i doing mistake...?
  Please guide me, Thanks in Advance....</p>
  
  <p>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>MenuTest.java</p>
  
  <pre><code>public class MenuTest extends Activity {
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  }
  
  @Override
  public void onCreateContextMenu(ContextMenu menu, View v,
          ContextMenuInfo menuInfo) {
      super.onCreateContextMenu(menu, v, menuInfo);
      MenuInflater inflater =getMenuInflater();
      inflater.inflate(R.menu.more_tab_menu, menu);
  }
  @Override
  public boolean onContextItemSelected(MenuItem item) {
      AdapterContextMenuInfo contextMenuInfo=(AdapterContextMenuInfo)item.getMenuInfo();
      switch(item.getItemId())
      {
      case R.id.feeds:
          break;
      case R.id.friends:
          break;
      case R.id.about:
          break;
      }
  
      return super.onContextItemSelected(item);
  }
  }
  </code></pre>
  
  <p>Please tell me where am i doing mistake...?</p>