registerForContextMenu on gridview adapter not called
<p>I have this code:</p>

<pre><code>    gridview = (GridView) findViewById(R.id.gridview);      
    gridview.setAdapter(createAdapter(this));       
    this.registerForContextMenu(gridview);
</code></pre>

<p>and</p>

<pre><code>public boolean onContextItemSelected(MenuItem item)
{
    AdapterContextMenuInfo info = (AdapterContextMenuInfo) item.getMenuInfo();
    switch (item.getItemId()) {
        case R.id.datacorrection:
            onCorrectData();
            return true;
        case R.id.postfacebook:
            onPostFacebook();
            return true;
        default:
            return super.onContextItemSelected(item);
    }
}

protected void onCorrectData()
{

}

protected void onPostFacebook()
{

}

@Override
public void onCreateContextMenu(ContextMenu menu, View v,
        ContextMenuInfo menuInfo) {
    // TODO Auto-generated method stub
    super.onCreateContextMenu(menu, v, menuInfo);

    MenuInflater inflater = getMenuInflater();
    inflater.inflate(R.menu.context_menu, menu);
}
</code></pre>

<p>My custom adapter creates multiple TextViews arranged in the GridView. I want to listen to a long click on each of the TextViews in order to show a context menu. For some reason the onCreateContextMenu is never called even though I called registerForContextMenu on the GridView. I thought through this call all individual views (here: TextViews) will listen to a long click? Pls advice. Thanks!</p>
