Code example for Context

Methods: getApplicationContext

0
 
  private final Context context;
 
  public IdentityLoader(Context context) {
    super(context);
    this.context      = context.getApplicationContext();
  } 
 
  @Override 
  public Cursor loadInBackground() {
    return DatabaseFactory.getIdentityDatabase(context).getIdentities();
  } 
 
}