title: The Contextmenu does not show up
body: <p>I am trying to create a <code>ContextMenu</code> with a button. For some reason, it is not working. Can anyone tell me what is wrong with my code?</p>
  
  <p>This is the picture_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/take_from_gallery"
      android:title="@string/str_take_from_gallery"/&gt;
    &lt;item
      android:id="@+id/take_picture"
      android:title="@string/str_take_picture"/&gt;
    &lt;item
      android:id="@+id/delete_picture"
      android:title="@string/str_delete_picture"/&gt;    
  &lt;/menu&gt;
  </code></pre>
  
  <p>and this is the java code:</p>
  
  <pre><code>camera_button= new Button(this);
  camera_button.setLongClickable(true);
  registerForContextMenu(camera_button);
  
  public void onCreateContextmenu(ContextMenu menu, View v,ContextMenuInfo menuInfo)
  {
      MenuInflater inflater= getMenuInflater();
      inflater.inflate(R.menu.picture_menu, menu);
      super.onCreateContextMenu(menu, v, menuInfo);
  }
  
  public boolean onContextItemSelected(MenuItem item)
  {
      AdapterContextMenuInfo info= (AdapterContextMenuInfo) item.getMenuInfo();
      switch (item.getItemId())
      {
      case R.id.take_from_gallery:
          return true;
      case R.id.take_picture:
          return true;
      case R.id.delete_picture:
          return true;
      default:
          return super.onContextItemSelected(item);
      }
  }
  </code></pre>
  
  <p>All I need right now is to make this work.
  Thanks!</p>