title: Detecting onContextMenu clicks in a fragment
body: <p>So I've successfully connected a context menu pop up to a list view in a fragment. The items show up, but when I click on them, <code>onContextMenuItemSelectedMenu()</code> is ignored and instead <code>onMenuItemClick()</code> is called in the parent activity. How can I make it so when I click the context menu items <code>onContextMenuItemSelectedMenu()</code> is called in the fragment instead. Thanks.</p>
  
  <pre><code>@Override
  public void onCreateContextMenu(ContextMenu menu, View v,
              ContextMenuInfo menuInfo)
  {
      super.onCreateContextMenu(menu, v, menuInfo);
      menu.add("item1");
      menu.add("item2");
      menu.add("item3");      
  }
  
  
  
  @Override
  public boolean onContextItemSelected (android.view.MenuItem item){
      Log.i("cTest", "clicked context menu");
              return true;
     }
  </code></pre>