title: How can I refresh the cursor from a CursorLoader?
body: <p>So I have my <code>MainDisplayActivity</code> which implements both <code>Activity</code> and <code>LoaderManager.LoaderCallbacks&lt;Cursor&gt;</code>. Here I have A <code>ListView</code>, which I fill with Agenda information that I get from my database using a ContentProvider. I also have a <code>GridView</code> which is a calendar. I have it set up when clicking a cell, that the agenda is updated with the day clicked. My problem is that when reusing the Loader I created in <code>onCreate()</code> inside of the setOnItemClickListener(), it does not refresh the information with the new cursor I am creating. I can just create a new Loader with another ID, and it works once, but once I click another day, it stops refreshing. The problem, lies in the cursor. How can I refresh a cursor from a Loader so I don't have to keep creating a new Loader? Thanks in advance!</p>
  
  <p>Initial call to create the Loader in onCreate() in My <code>MainDisplayActivity</code> class:</p>
  
  <pre><code>makeProviderBundle(new String[] {"_id, event_name, start_date, start_time, end_date, end_time, location"},
              "date(?) &gt;= start_date and date(?) &lt;= end_date", new String[]{getChosenDate(), getChosenDate()}, null);
      getLoaderManager().initLoader(0, myBundle, MainDisplayActivity.this);
  
      list.setAdapter(agendaAdapter);
  </code></pre>
  
  <p>These are the overridden methods from <code>LoaderCallbacks&lt;Cursor&gt;</code></p>
  
  <pre><code>@Override
  public Loader&lt;Cursor&gt; onCreateLoader(int id, Bundle args) {
      Uri baseUri = SmartCalProvider.CONTENT_URI;
      return new CursorLoader(this, baseUri, args.getStringArray("projection"), 
              args.getString("selection"), args.getStringArray("selectionArgs"), args.getBoolean("sortOrder") ? args.getString("sortOrder") : null );
  }
  
  
  
  @Override
  public void onLoadFinished(Loader&lt;Cursor&gt; arg0, Cursor arg1) {
      agendaAdapter.swapCursor(arg1);
  }
  
  
  
  @Override
  public void onLoaderReset(Loader&lt;Cursor&gt; arg0) {
      //Not really sure how this works. Maybe I need to fix this here?
      agendaAdapter.swapCursor(null);
  
  }
  
  public void makeProviderBundle(String[] projection, String selection, String[] selectionArgs, String sortOrder){
      /*this is a convenience method to pass it arguments 
       * to pass into myBundle which in turn is passed 
       * into the Cursor loader to query the smartcal.db*/
      myBundle = new Bundle();
      myBundle.putStringArray("projection", projection);
      myBundle.putString("selection", selection);
      myBundle.putStringArray("selectionArgs", selectionArgs);
      if(sortOrder != null) myBundle.putString("sortOrder", sortOrder);
  }
  </code></pre>
  
  <p>Any additional code needed please do not hesitate to ask. Thanks again for any help!</p>