除了“Google”之外,我如何读取联系人信息帐户?
我的设备(Android 3.2)上配置了多个帐户:
- com.android.exchange (Exchange)
- com.facebook.auth.login (Facebook)
- com.twitter.android.auth.login (Twitter)
- com.google (Google) )
但是当我尝试读取联系人时,我得到的只是来自“Google”帐户的联系人。
Cursor cursor = getContentResolver().query(ContactsContract.RawContacts.CONTENT_URI, null, null, null, null);
...
我看到一条关于 Facebook 联系人限制的评论,实际上没有对我来说意义重大。
问题那么,我如何检索“联系人”应用程序显示的同一组联系人呢?
更新:我对“Twitter”和“Exchange”的看法是错误的,它们效果很好。唯一的问题是“Facebook”。
I have a number of accounts configured on my device (Android 3.2):
- com.android.exchange (Exchange)
- com.facebook.auth.login (Facebook)
- com.twitter.android.auth.login (Twitter)
- com.google (Google)
But when I try to read contacts, all I get is contacts from "Google" account.
Cursor cursor = getContentResolver().query(ContactsContract.RawContacts.CONTENT_URI, null, null, null, null);
...
I saw a comment about facebook contacts restrictions, that actually makes no sense for me.
Question. So how can I retrieve the same set of contacts that "Contacts" application shows?
UPDATE: I was wrong about "Twitter" and "Exchange", they works good. The only problem with "Facebook".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
帖子:
帖子:
Post:
Post:
这是我发布的如何读取所有联系人的链接,包括 facebook
读取所有联系人(包括从facebook等导入)
Here is the Link where I posted how to read all the contact include facebook
Read all contacts (including imported from facebook, etc)