title: how do you view the results of a database in a new activity?
body: <p>I am currently creating a database to store a list of names and coordinates of service stations. However I cannot view the database when i click the view button. Here is my code: `</p>
  
  <pre><code>public String getData() 
      {
          // TODO Auto-generated method stub
          String[] columns = new String[]{ KEY_ROWID, KEY_NAME, KEY_COORDINATES};
          Cursor c = myDatabase.query(DATABASE_NAME, columns, null, null, null, null, null);
          String result = "";
  
          int iRow = c.getColumnIndex(KEY_ROWID);
          int iName = c.getColumnIndex(KEY_NAME);
          int iCoordinates = c.getColumnIndex(KEY_COORDINATES);
  
          for (c.moveToFirst(); !c.isAfterLast(); c.moveToNext())
          {
              result = result + c.getString(iRow) + " " + c.getString(iName) + " " + c.getString(iCoordinates) + "\n";
  
  
  
          }
  
          return result;
      }`
  </code></pre>
  
  <p>Does anybody see a problem with this code?</p>