Last active
March 6, 2016 01:05
-
-
Save nex3z/cf528204888bc889584f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SimpleObserver extends ContentObserver { | |
private static final String LOG_TAG = SimpleObserver.class.getSimpleName(); | |
public SimpleObserver(Handler handler) { | |
super(handler); | |
} | |
@Override | |
public void onChange(boolean selfChange) { | |
this.onChange(selfChange, null); | |
} | |
@Override | |
public void onChange(boolean selfChange, Uri uri) { | |
Log.v(LOG_TAG, "onChange(): selfChange = " + selfChange + ", uri = " + uri); | |
} | |
} | |
/* | |
context.getContentResolver().registerContentObserver(ScheduleContract.ScheduleEntry.CONTENT_URI, true, observer); | |
context.getContentResolver().unregisterContentObserver(observer); | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment