how do i get startActivityForResult() to bring up just a list of telephone contacts (like when i click on the “People” icon) using the android sdk?

两盒软妹~` 提交于 2019-12-02 11:17:30

There are several predifined actions with standard application contacts.

I think, what you're looking for is :

intent = new Intent(android.provider.Contacts.Intents.UI.LIST_CONTACTS_WITH_PHONES_ACTION);

Update: well this seems deprecated now, starting from API 5, one should use ContactsContract. I do not know this API though.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!