title: closing Cursor in SQLite database explicitly, needed or not needed?
body: <p>I understand that a after a database is closed, the cursor becomes "invalid", does that also close the cursor at the same time?  Does that avoid having to do what is shown below? </p>
  
  <p>example 1</p>
  
  <pre><code> public void String getResultsAndReturnString() {
        String result = "";
        SQLiteDatabase db = dbHelper.getReadableDatabase();
        Cursor cursor = qb.query(db, projection, null, null,
                      null, null, null);
        cursor.close();  &lt;-- explicit cursor close example one
        db.close();
       return result;
    }
  </code></pre>
  
  <p>example 2</p>
  
  <pre><code>public void Cursor getResultsAndReturnCursor(){
     SQLiteDatabase db = dbHelper.getReadableDatabase();
     Cursor cursor = qb.query(db, projection, null, null,
                      null, null, null);
     return cursor;
  }
  
  public void closeOut(Cursor cursor, SQLiteDatabase dataBase){
       cursor.close();   &lt;-- explicit cursor close example two
       dataBase.close();
  }
  </code></pre>