title: How do I close my Cursor when using rawQuery and CursorAdapter
body: <p>I am using a <code>rawQuery</code> in my DB class and returning the cursor to my adapter which is a <code>CursorAdapter</code> which I use with a custom <code>ListView</code> item.</p>
  
  <p>Is this cursor automatically closed after the view is painted in the screen or how to manage this cursor? what is the best practice in this scenario ?</p>
  
  <p>If I close this cursor in DB class I am not able to access them from my adapter.</p>
  
  <p>Thanks for your time and effort in helping me.</p>
  
  <p>EDITing to add some code snippets for better understanding</p>
  
  <p>This is my activity code:</p>
  
  <pre><code>calAdapter = new CalendarListAdapter(context, dbHelper.getAllCalendars());
  drawerList.setAdapter(calAdapter);
  </code></pre>
  
  <p>This is my cursor</p>
  
  <pre><code>public Cursor getAllCalendars() {
          String query = "SELECT calendarId as _id, calendarName, calState, calShow FROM "
                  + TABLE_CALENDAR_LIST;
          SQLiteDatabase db = this.getReadableDatabase();
          Cursor cursor = db.rawQuery(query, null);
          return cursor;
      }
  </code></pre>