title: ContextMenu will not appear on ListView when using SimpleCursorAdapter
body: <p>I'm new to android development and I work on the application for tablet running Android 3.1.
  The main activity is divided into more functional parts and one of them shows the list of some items, the long click on the item should open the context menu.
  I have a problem, because I can't make it work.</p>
  
  <p>The main activity extends the MapActivity because it contains also the map...
  The <em>ListView</em> uses the <em>SimpleCursorAdapter</em>.</p>
  
  <p>The list view is registered for context menu in the onCreate method of the main activity:</p>
  
  <pre><code>  alarmList = (ListView) findViewById (R.id.alarmList);
    registerForContextMenu(alarmList);
  </code></pre>
  
  <p>And the main activity overrides <em>onCreateContextMenu</em> and also <em>onContextItemSelected</em> methods, but this are never called when the item is clicked.</p>
  
  <hr>
  
  <p>I wondered that while using the <em>ArrayAdapter</em> and simple string display of the item, the context menu of the list works well and the list provides a nice selection of items when clicked (with some nice fade-out effect). But when I change the adapter to <em>SimpleCursorAdapter</em>, the list view does not react on clicking at all. To "simulate" the clicks I have added clickable attribute to ListView:</p>
  
  <pre><code>&lt;ListView android:id="@+id/alarmList" android:layout_width="fill_parent" android:layout_height="fill_parent" android:clickable="true"/&gt;
  </code></pre>
  
  <p>And the single list item is formatted using its own layout, which starts like this:
  [alarm_list_item.xml:]</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/linearLayout" android:layout_width="match_parent" android:background="@color/alarm_list_bg"
      android:clickable="true" android:baselineAligned="true" android:layout_height="wrap_content" android:minHeight="65dp"&gt;
  ...
  </code></pre>
  
  <p>[alarm_list_bg:]</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item android:state_selected="false" android:state_pressed="false" android:drawable="@color/black_12"/&gt;
  &lt;item android:state_pressed="true"  android:drawable="@color/grey_12" /&gt;
  &lt;item android:state_selected="true" android:state_pressed="false" android:drawable="@color/blue_12" /&gt;
  &lt;/selector&gt;
  </code></pre>
  
  <p>I have tried to register some listeners directly on the <em>ListView</em> instance (<em>OnItemLongClickListener</em>, <em>OnCreateContextMenuListener</em>, <em>OnItemClickListener</em>), but none of them is called.</p>
  
  <p>Could you please have an idea what could be wrong?</p>
  
  <p>Kind regards
  Mirec</p>