反应在Android的联系人应用程序新的联系 [英] Reacting to new contacts in Android Contacts application

查看:217
本文介绍了反应在Android的联系人应用程序新的联系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想执行特定操作的每一个用户将在Android联系人应用程序一个新的接触时间。这将包括使用新的联系人信息。

I would like to perform a certain operation every time a user adds a new contact in the Android Contacts application. It would include using the new contact's information.

有没有一种简单的方法来做到这一点?有一些事件可以听了还是我来扩展联系人应用程序本身呢?或者我应该只是想一些其他的方法,如果这是不可行的。

Is there an easy way to do this? Is there some event that can be listened for or do I have to extend the Contacts application itself? Or should I just think of some other approach if this is not feasible.

推荐答案

它看起来像你最好的行动当然这个是要运行使用的内容观察员的联系人数据,因为没有意图时,一个新的联系人输入被公开播放。一个更详细的讨论这个想法可以在<一个被发现href="http://groups.google.com/group/android-developers/browse%5Fthread/thread/a1aca12e78664064?tvc=2">android-developers谷歌集团网站。

It looks like your best course of action on this is to run a lightweight background service that uses a content observer for the contacts data because there is no intent that is publicly broadcasted when a new contact is entered. A much more detailed discussion of this idea can be found on the android-developers google group site.

这篇关于反应在Android的联系人应用程序新的联系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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