Native contact change notification

馋奶兔 提交于 2019-11-28 08:32:37

问题


How can I get callback in my application whenever a contact is added or deleted or changed ? Is there any standard broadcast intent that I can register a BroadcastReceiver for that ?


回答1:


No BroadcastReceiver available for notifying contacts changes. You may need to use ContentObserver to get notified. Lots discussions happened to here on how to receive Contacts change notification via ContentObserver. Try searching for it.

Another way of getting notified, is by using SyncAdapters. Look into here for info http://www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/



来源:https://stackoverflow.com/questions/6595090/native-contact-change-notification

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!