Code example for CursorLoader

Methods: getContext, onStartLoading

0
        onAbandon(); 
    } 
 
    protected void onStartLoading() 
    { 
        super.onStartLoading(); 
        if(!mObserverRegistered && mNotificationUri != null)
        { 
            getContext().getContentResolver().registerContentObserver(mNotificationUri, false, mObserver);
            mObserverRegistered = true;
        } 
    } 
 
    protected final void onStopLoading() 
    { 
    } 
}