title: Trigger ListView's OnClickListener in a TabActivity?
body: <p>I've searched around for a while now to try to find a solution to this problem, but none of them have worked for me. I have a tab setup which displays tab activities. I'm trying to use a OnClickListener in ListView to catch click events in a list, but it doesn't work. Thanks in advance for helping!</p>
  
  <pre><code>public class Ettan extends ListActivity {
  
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
  
          super.onCreate(savedInstanceState);
          setContentView(R.layout.ettan);
  
          ListAdapter adapter = new SimpleAdapter(this, mylist , R.layout.nyhetslista,
                          new String[] { "rubrik", "kategori" },
                          new int[] { R.id.item_title, R.id.item_subtitle });
  
          setListAdapter(adapter);
  
          final ListView lv = getListView();
          lv.setTextFilterEnabled(false);
  
          lv.setOnItemClickListener(new OnItemClickListener()
          {
              @Override
              public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id)
              {
                  Toast.makeText(getApplicationContext(), "yay", Toast.LENGTH_LONG).show();
              }
          });
  
      }
  }
  </code></pre>