Code example for CursorAdapter

Methods: swapCursor

0
                            MediaStore.Video.Media.TITLE));
  } 
 
  @Override 
  public void onLoadFinished(Loader<Cursor> loader, Cursor c) {
    ((CursorAdapter)getListAdapter()).swapCursor(c);
  } 
 
  @Override 
  public void onLoaderReset(Loader<Cursor> loader) {
    ((CursorAdapter)getListAdapter()).swapCursor(null);
  } 
 
  interface Contract { 
    void onVideoSelected(String uri, String mimeType);
  } 
 
  private static class ThumbnailBinder implements 
      SimpleCursorAdapter.ViewBinder {
    @Override 
    public boolean setViewValue(View v, Cursor c, int column) {