On Wed, Apr 22, 2009 at 2:48 AM, aby <[email protected]> wrote:

>
>
> In the sample code of android developer
> http://developer.android.com/reference/android/content/ContentProvider.html
>
> When query the content provider, the cursor in query () call
> setNotificationUri(getContext().getContentResolver(), uri).
>
> But the query is a read-data action, it doesn't need to notify uri
> because the database can't update when being read. is there any
> propose to avoid some problem adding setNotificationUri in the query
> function of content provider?


The notification is for when the data changes after the cursor has been
created, so that whoever has the cursor is notified that the data in the
cursor is now stale, and the cursor should be requeried.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to