title: Iterate through rows from Sqlite-query
body: <p>I have a table layout that I want to populate with the result from a database query. I use a select all and the query returns four rows of data. </p>
  
  <p>I use this code to populate the TextViews inside the table rows.</p>
  
  <pre class="lang-java prettyprint-override"><code>Cursor c = null;
  c = dh.getAlternative2();
  startManagingCursor(c);
  // the desired columns to be bound
  String[] columns = new String[] {DataHelper.KEY_ALT};
  // the XML defined views which the data will be bound to
  int[] to = new int[] { R.id.name_entry};
  
  SimpleCursorAdapter mAdapter = new SimpleCursorAdapter(this, 
           R.layout.list_example_entry, c, columns, to);
  this.setListAdapter(mAdapter);
  </code></pre>
  
  <p>I want to be able to separate the four different values of KEY_ALT, and choose where they go. I want them to populate four different TextViews instead of one in my example above.</p>
  
  <p>How can I iterate through the resulting cursor?</p>