Code example for AsyncTaskLoader

0
    private boolean mIsDataStale;
    private final String mSquareId;
     
    public SquareCategoryLoader(Context context, EsAccount esaccount, String s)
    { 
        super(context);
        mAccount = esaccount;
        mSquareId = s;
    } 
 
    public final void deliverResult(Object obj)
    { 
        DbSquareStream adbsquarestream[] = (DbSquareStream[])obj;
        if(!isReset())
        { 
            mData = adbsquarestream;
            if(isStarted())
                super.deliverResult(adbsquarestream);
        } 
    }