title: How to implement onClick in a Listview
body: <p>I guess this is simple.</p>
  
  <p>I want to toast the text in the rows when I click on it. And here is my code:</p>
  
  <blockquote>
    <p>public class AndroidSQLite extends Activity {         private SQLiteAdapter
    mySQLiteAdapter;</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      ListView listContent = (ListView)findViewById(R.id.contentlist);
      mySQLiteAdapter = new SQLiteAdapter(this);
      mySQLiteAdapter = new SQLiteAdapter(this);
      mySQLiteAdapter.openToRead();
  
      Cursor cursor = mySQLiteAdapter.queueAll();
      startManagingCursor(cursor);
  
      String[] from = new String[]{SQLiteAdapter.KEY_NOME};
      int[] to = new int[]{R.id.text};
  
      SimpleCursorAdapter cursorAdapter =
       new SimpleCursorAdapter(this, R.layout.row, cursor, from, to);
  
      listContent.setAdapter(cursorAdapter);
  
      mySQLiteAdapter.close();
  }
  </code></pre>
    
    <p>}</p>
  </blockquote>
  
  <p>Thank You!</p>