Hi,
I have called an AsyncQueryHandler's startQuery function with a
specified URL, will all the content observer observing that URL get
notified?
I asked this question because I don't understand how
RecentCallsListActivity's Delete All function works.
Here is the code, with comment:
case MENU_ITEM_DELETE_ALL: {
getContentResolver().delete(Calls.CONTENT_URI, null, null);
//TODO The change notification should do this
automatically, but it isn't working
// right now. Remove this when the change notification
is working properly.
startQuery();
return true;
It appears the call to startQuery() is a work-around to fix the
notification not working for the delete() case.
But the startQuery is merely calling AsyncQueryHandler's startQuery function.
mQueryHandler.cancelOperation(QUERY_TOKEN);
mQueryHandler.startQuery(QUERY_TOKEN, null, Calls.CONTENT_URI,
CALL_LOG_PROJECTION, null, null, Calls.DEFAULT_SORT_ORDER);
This won't trigger any changes in the Calls.CONTENT_URL. So how will
this extra call to 'startQuery()' fixes the notification problem
described in the comment?
Thank you.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---