我是新来的android任何人都可以告诉我在实现内容提供者时cursor.setNotificationUri()
和getContentResolver().notifyChange(uri,null)
之间有什么区别。Dilerence between cursor.setNotificationUri()and getContentResolver()。notifyChange(uri,null)
我已经看到cursor.setNotificationUri()
用于query()
方法,并且在更新或插入getContentResolver().notifyChange()
时使用。
我几乎没有理解getContentResolver().notifyChange()
通知解析器某些数据已被更改,但cursor.setNotificationUri()
在那里做什么?
可能的重复[什么是cursor.setNotificationUri()用于?](http://stackoverflow.com/questions/21623714/what-is-cursor-setnotificationuri-used-for) – XGouchet