title: Populate list view with cursor
body: <p>I am very new to Android development so please excuse any naivety. </p>
  
  <p>I have created a list view on my activity:</p>
  
  <pre><code>&lt;ListView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/listView"
          android:layout_centerVertical="true"
          android:layout_toRightOf="@+id/textView"
          android:layout_toEndOf="@+id/textView" /&gt;
  </code></pre>
  
  <p>I have extracted all the date from my sqllite table:</p>
  
  <pre><code>public Cursor getAll()
      {
          SQLiteDatabase database = getReadableDatabase();
          Cursor cursor = database.rawQuery("select * from todos",null);
          return cursor;
      }
  </code></pre>
  
  <p>(At least I think I have, Im not sure how to test if there is data in there, if the database exists, if the table exists etc as I don't know how to view the database).</p>
  
  <p>How do I populate the list view with the rows from my table?</p>