如何获得Android SDK的联系人选择器给我打电话只是结果,而不是我的Twitter的追随者 [英] How do get the android sdk contact picker to give me just phone results and not all my twitter followers

查看:125
本文介绍了如何获得Android SDK的联系人选择器给我打电话只是结果,而不是我的Twitter的追随者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到一些pretty怪异的东西,当我尝试使用这样的:

i get some pretty weird stuff when i try and use this:

Intent intent = new Intent(Intent.ACTION_PICK, ContactsContract.Contacts.CONTENT_URI);
startActivityForResult(intent, PICK_CONTACT);

我的问题是,这拉回到一个很奇怪的名单,这似乎有充分的接触方式(如电话,电子邮件,Twitter等),以及一个巨大的未命名联系人列表和我的多家上市100倍。我想是因为它只是为了拉回同一列表,当我点击手机窗口小部件我的手机上。我怎么得到它这样做呢?有其他人遇到这个问题?知道什么是地狱它做什么?有什么建议?

my problem is that this pulls back a very strange list, it appears to have every type of contact (i.e phones, emails, twitter, etc) as well as a huge list of "Unnamed" contacts and my number listed about 100 times. What i want is for it just to pull back the same list as when I hit the "phones" widget on my phone. how do I get it to do that? has anybody else hit this issue? know what the hell its doing? have any advice?

我真的很讨厌Android的是,所有的例子在那里出现脱precated,而且做起来的建议新的方式是不是抽象的概念直观(Android开发失误编程),并缺乏任何真正的code的例子。

what I am really hating about android is that all the examples out there appear to deprecated, and the suggested "new" ways of doing it are not intuitive (android development misses on the concept of "abstraction" in programming) and are lacking any real code examples.

每个人都喜欢讨厌微软,但至少他们的文档写得很好,有很多的例子,一切都不会变成5分钟后pcated德$ P $。

Everyone loves to hate on Microsoft, but at least their documentation is well-written, has plenty of examples, and everything doesn't become deprecated after 5 minutes.

感谢您的帮助!

推荐答案

下面是一个工作code:
<一href=\"https://github.com/rbochet/MeshMS-interface-mockup/blob/master/src/fr/stackr/android/meshms/SMSInterface.java\" rel=\"nofollow\">https://github.com/rbochet/MeshMS-interface-mockup/blob/master/src/fr/stackr/android/meshms/SMSInterface.java

Here is a working code: https://github.com/rbochet/MeshMS-interface-mockup/blob/master/src/fr/stackr/android/meshms/SMSInterface.java

我同意你的德precated东西......可以得到pretty无聊。

I agree with you for the deprecated stuff… Can get pretty boring.

这篇关于如何获得Android SDK的联系人选择器给我打电话只是结果,而不是我的Twitter的追随者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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