title: Check selected item of ListView
body: <p>I have a ListView and need to check, which item has been clicked.
  The way I have it, it only shows my the selected item when I use the scrollwheel of my mouse (when testing it in the Eclipse emulator). When I test it on a real mobile device, it doesn't react at all.</p>
  
  <pre><code>adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, listItems);
  listView.setAdapter(adapter);
  
  listView.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
  
      public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
              int arg2, long arg3) {
          myFunction(listView.getSelectedItem());
      }
  
      public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
          // TODO Auto-generated method stub
      }
  });
  </code></pre>