Code example for DataSetObservable

Methods: unregisterObserver

0
        mDataSetObservable.registerObserver(observer);
         
    } 
 
    public void unregisterDataSetObserver(DataSetObserver observer) {
        mDataSetObservable.unregisterObserver(observer);
    } 
 
    /** 
     * Subclasses must call this method when they finish committing updates to notify all 
     * observers. 
     * 
     * @param selfChange 
     */ 
    protected void onChange(boolean selfChange) {
        synchronized (mSelfObserverLock) {
            mContentObservable.dispatchChange(selfChange);
            if (mNotifyUri != null && selfChange) {
                mContentResolver.notifyChange(mNotifyUri, mSelfObserver);
            } 
        }