title: Android OnItemClickListener not working
body: <p>I'm using android 2.3.3. I set up a layout like,</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:orientation="vertical" android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
      &lt;ListView android:id="@+id/mainList" android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And I'm manipulating it with </p>
  
  <pre><code>package org.dewsworld.ui;
  
  import org.dewsworld.core.NBConfig;
  
  import android.app.Activity;
  import android.app.ListActivity;
  import android.os.Bundle;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.view.ViewGroup;
  import android.widget.ArrayAdapter;
  import android.widget.ListAdapter;
  import android.widget.ListView;
  
  public class NewsBotActivity extends ListActivity {
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          setListAdapter( new ArrayAdapter&lt;String&gt;(this,
                                              android.R.layout.simple_list_item_1,
                                              NBConfig.topics));
  
          ListView listView = (ListView) findViewById(R.id.mainList) ;
          listView.setOnItemClickListener( new OnItemClickListener() {
  
          });
      }
  }
  </code></pre>
  
  <p>Using eclise IDE, when I setthe OnItemClickListener it gives me the error</p>
  
  <pre><code>The method setOnItemClickListener(AdapterView.OnItemClickListener) in the type AdapterView&lt;ListAdapter&gt; is not applicable for the arguments (new 
       OnItemClickListener(){})
  </code></pre>
  
  <p>I can't fix this. [I've added an image with the error]<img src="https://i.stack.imgur.com/W0t0t.png" alt="img"><img src="https://i.stack.imgur.com/rRzLq.png" alt="img"></p>