Code example for AsyncTaskLoader

Methods: onStartLoading

0
        this.uid = uid;
    } 
 
    @Override 
    protected void onStartLoading() { 
        super.onStartLoading(); 
        forceLoad();
    } 
 
    @Override 
    public Ad loadInBackground() { 
        return Gumtree.getAdDao().getAd( uid );
    } 
}