本地联系人变更通知 [英] Native contact change notification

查看:143
本文介绍了本地联系人变更通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能得到回调在我的应用程序,每当一个联系人添加或删除或更改?有没有标准的广播意图,我可以为注册一个BroadcastReceiver?

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 ?

推荐答案

没有BroadcastReceiver的可用通知联系人的变化。您可能需要使用ContentObserver得到通知。很多的讨论发生在这里就如何接收联系人通过ContentObserver更改通知。尝试寻找它。

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.

得到通知的另一种方式,是使用SyncAdapters。看看这里的信息 HTTP:/ /www.c99.org/2010/01/23/writing-an-android-sync-provider-part-2/

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/

这篇关于本地联系人变更通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆