title: Click on list item of a ListView doesn't respond
body: <p>I am implementing <code>ListView</code> in my code. But When I click on the items, it does not respond respond to the click in any way. Could someone help me please? Thanks in advance .</p>
  
  <p>Here is the code . </p>
  
  <pre><code>public class ListaActivity extends Activity {
  
      public final static String EXTRA_MESSAGE = "com.example.provacomunicazione.MESSAGE";
      @Override
      public void onCreate(Bundle savedInstanceState)  {
          super.onCreate(savedInstanceState); 
          setContentView(R.layout.lsta);
          Resources res = getResources();
          String[] Authors = res.getStringArray(R.array.Lista_Nomi_E_Cognomi_Autori);
          ArrayList&lt;String&gt; Autori = new ArrayList&lt;String&gt;();
          for (String temp:Authors) {
              Autori.add(temp);
          }
          Collections.sort(Autori);
          ArrayList&lt;String&gt; AutoriLetteraSelezionata = new ArrayList&lt;String&gt;();
          for (String temp:Autori) {
              if (temp.charAt(0)=='A') {
                  AutoriLetteraSelezionata.add(temp);
              }
          }
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,R.layout.textviewitem, AutoriLetteraSelezionata);
          ListView listView = (ListView) findViewById(R.id.listView1);
          listView.setAdapter(adapter);
          listView.setClickable(true);
          listView.setOnItemClickListener(new OnItemClickListener() {
  
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) { 
  
              CharSequence autore = "("+((TextView)view).getText()+")";
  
              Intent i = new Intent(ListaActivity.this, SecondaryActivity.class);
              i.putExtra(EXTRA_MESSAGE, autore);
              startActivity(i);  
          });
      }
  }    
  </code></pre>