I am new to android can any one tell me what is the difference between cursor.setNotificationUri()
and getContentResolver().notifyChange(uri,null)
while implementing content provider.
I have seen that cursor.setNotificationUri()
is used in query()
method and while updating or inserting getContentResolver().notifyChange()
is used.
I have little understanding that getContentResolver().notifyChange()
notifies resolver that some data has been changed but what does cursor.setNotificationUri()
do there ?