Difference between ContentObserver and DatasetObserver?
问题 What is difference between ContentObserver and DatasetObserver ? When one or another should be used? I get Cursor with single row. I want to be notified about data changes - eg. when row is updated. Which observer class should I register? 回答1: If you are using a ContentProvider (via ContentResolver or Activity.managedQuery() ) to get your data, simply attach a ContentObserver to your Cursor . The code in onChange() will be called whenever the ContentResolver broadcasts a notification for the