 <p>I don't think it's working smoothly. Calling <code>openContextMenu(l)</code> will cause <code>item.getMenuInfo()</code> to be null (inside method <code>onContextItemSelected(MenuItem item)</code>). </p> <p>You should call <code>l.showContextMenuForChild(v)</code> instead of <code>openContextMenu(l)</code>.</p>