onContextItemSelected never called using a Dialog with a ListView
<p>I'm creating a simple dialog with a ListView on it. I want to be able to access a context menu on it.
Here's the basic code I've:</p>

<pre><code>&lt;On CreateDialog&gt;
listViewSongs=(ListView) layout.findViewById(R.id.ListView_Songs);
listViewSongs.setAdapter(new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_item, drawingPanel.metronome.getSongNames()));

registerForContextMenu(listViewSongs);  
</code></pre>

<p>Then I just add a simple item:</p>

<pre><code>@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo)
{
    super.onCreateContextMenu(menu, v, menuInfo);
 menu.setHeaderTitle("Sample Context Menu");
    menu.add(0, MENU_EDIT_SONG, 0, "Edit");
}
</code></pre>

<p>And finally I override the onContextItemSelected:</p>

<pre><code>@Override
public boolean onContextItemSelected(MenuItem item) {
 super.onContextItemSelected(item);
    editSong();
    return true; 
}
</code></pre>

<p>So my problem is that when I longpress the listview I got the context menu, but after clicking the only option on it, it never calls onContextItemSelected :(
Any help?</p>

<p>PS: I've tried also to override onMenuItemSelected, onOptionsItemSelected, but I got the same result :\ never got called.</p>
