问题标签 [android-contacts]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 安卓联系人查询
我在查询电话簿联系人时遇到问题。我需要做的是获取同时输入了电话和电子邮件或属于特定类型的联系人列表。
基本上是这样的:
现在,问题是,在我的查询中使用RawContacts.ACCOUNT_TYPE
它不存在。ContactsContract.Contacts.CONTENT_URI
我猜我需要加入另一张桌子,但不知道该怎么做。
任何人都可以在这里帮助我吗?
android - android 获取 android 1.5 的联系人姓名和电话号码
到目前为止,我从在这里看到的示例中获得了这段代码:
这使我可以打开一个正确显示手机上联系人的活动,然后让我选择一个联系人。但是,每次我单击联系人时,程序都会崩溃。任何想法为什么会发生这种情况?谢谢
android - 更新联系人电子邮件地址时出现问题
我正在尝试使用此代码更新联系电子邮件地址
我正在使用此代码获取“Id”
我的问题是
- 我是否使用正确的方法来使用电话号码获取 Contact_ID
- 联系人没有正确更新,它正在更改电子邮件、姓名和号码等所有字段。难道我做错了什么?
需要帮忙。
android - vcard manager in android
I want to make VCard manager in android for 1.5 and above . This application will be able to perform following functions: 1 Send and receive contact . I want that when i send a contact to any mobile it should get the save option to save the contact and if some send me a business card then i should be able to save it in my contacts.
Can you please suggest me how to do it. Is there any particular format for sending a VCard . For eg in nokia phones we are able to send a contact and its details(email etc) in form of business card and the other person can save it .
Can the same thing be achieved in android ?
Regards Gaurav Gupta
android - 按电话号码搜索联系人
在我的应用程序中,用户写了一个电话号码,我想用该电话号码查找联系人姓名?
我通常这样搜索联系人:
但我这样做是为了访问所有联系人......在这个应用程序中,我只想获取给定电话号码的联系人姓名......如何限制查询?
还是我必须通过所有联系人查看是否有给定的电话号码?但我相信这样会很慢......
android - 如何以编程方式添加联系人?
我正在尝试以编程方式在 Android 中添加联系人。这是我的代码:
我这样做正确吗?如何添加帐户名称和帐户类型?
注意:我没有创建任何帐户。是否必须拥有帐户才能添加联系人?
android - Android:使用查找键管理联系人
我目前正在编写一个允许保存草稿的应用程序(使用 android 版本 >= 2.0)。每个草稿都通过 连接到一个联系人ContactsContract.Contacts.LOOKUP_KEY
。我的问题是,如果我更改联系人的姓名,查找键也会更改。这是这样的吗?
那么我需要一个查找键来做什么?我认为查找键永远不会改变,现在它无论如何都会改变。我对这种行为感到困惑......
有人可以向我解释如何永久链接到联系人吗?我应该使用 ID 而不是查找键吗?
提前致谢。
android - ACTION_PICK usage with contact book
I was able to use ACTION_PICK with People.CONTENT_URI with the following part of code
With this I was able to launch the native contact book and on selecting a contact it returned th _ID of that contact. Now what I want is to display the next screen of contact book--the page specific to that selected contact. I tried with the following code. but did not work
Here if I change Intent.ACTION_PICK to ACTION_VIEW I am able to view the reqd screen. But I want that screen with ability to return my selection(which will be a phone number or email etc).
android - 长按数字时添加选项
嗨,我想在长按通话列表中的号码时添加一个选项。其实我有:
- 拨号
- 发送短信
- 添加到联系人
- 调用前编辑
- 消除
是否可以在那里添加一个选项?按下时,此类选项应通过 Intent 启动我的应用程序。
谢谢
java - 如何将自定义数据和字段添加到 Android 中的联系人屏幕?
我正在尝试将自定义数据字段和 MIME 类型添加到联系人屏幕。有没有办法做到这一点,当用户查看保存有我的数据的联系人时,我的字段会出现在那里?这是我看到其他应用程序所做的事情——例如,Facebook、Twitter、Last.fm 等应用程序如何将它们的状态信息添加到联系人中?我似乎无法从 Contacts API 文档中弄清楚。