Code example for CursorLoader

0
public class IdentityLoader extends CursorLoader {
 
  private final Context context;
 
  public IdentityLoader(Context context) {
    super(context);
    this.context      = context.getApplicationContext();
  } 
 
  @Override 
  public Cursor loadInBackground() {
    return DatabaseFactory.getIdentityDatabase(context).getIdentities();
  } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE