title: Android CursorLoader, Trying to requery an already closed cursor
body: <p>I am just starting to play with the new cursorLoader and I am running into problems. The following code is just to understand how the cursorLoader works but I keep getting:</p>
  <p>&quot;Trying to requery an already closed cursor&quot;, when I resume this activity. The app was working fine before I started playing with the cursorLoader. Any ideas?</p>
  <pre><code>private Cursor getSectionData(CharSequence parent_id) {
      
      String[] projection = new String[] {Titles.SECTION, Titles.TITLE, Titles._ID, Titles.CODE_RANGE,};
      Uri titles =  Titles.CONTENT_URI;
      String select = &quot;&quot; + Titles.PARENT_ID + &quot; match &quot; + parent_id + &quot;&quot;;
      CursorLoader loader = new CursorLoader(this, titles, projection, select, null, null);
      Cursor cTitles = loader.loadInBackground();
      
      
      String[] projection1 = new String[] {Codes.CODE, Codes.EXCERPT, Codes._ID,};
      Uri codes =  Codes.CONTENT_URI;
      String select1 = &quot;&quot; + Codes.PARENT_ID + &quot; match &quot; + parent_id + &quot;&quot;;
      CursorLoader loader1 = new CursorLoader(this, codes, projection1, select1, null, null);
      Cursor cCodes = loader1.loadInBackground();
  
      
      
      //Cursor cTitles = db.rawQuery(&quot;select section, title, _id, code_range from titles where parent_id match &quot; + parent_id + &quot;&quot;, null);
      //startManagingCursor(cTitles);
      //Cursor cCodes = db.rawQuery(&quot;select code, excerpt, _id from codes where parent_id match &quot; + parent_id + &quot;&quot;, null);
      
      mQuery = &quot;select code, excerpt, _id from codes where parent_id match &quot; + parent_id + &quot;&quot;;
      
      //startManagingCursor(cCodes);
      Cursor[] c = {cTitles, cCodes};
      Cursor cursor = new MergeCursor(c);
      startManagingCursor(cursor);
      
      return cursor;
  
  }
  </code></pre>