title: How to retrieve data from a cursor in android?
body: <p>I retrieve information from my database and it is all in a Cursor. Now i need to go through each item in the cursor to retrieve lng lats and a name to display on a map.</p>
  
  <pre><code>Cursor c = mDbHelper.fetchSpot(15);
          startManagingCursor(c);
  
          double lat = Double.parseDouble(c.getString(c.getColumnIndexOrThrow(ParkingSpotDBAdapter.KEY_LAT)));
          double lng = Double.parseDouble(c.getString(c.getColumnIndexOrThrow(ParkingSpotDBAdapter.KEY_LNG)));
          String name = c.getString(c.getColumnIndexOrThrow(ParkingSpotDBAdapter.KEY_ADDRESS));
  </code></pre>
  
  <p>I Have antoher method called <code>fecthAllSpots()</code> this returns many items in the cursor, how do i go about retrieving each lng lat and name from each row in that cursor?</p>