Android的:如何从手机导入联系人? [英] Android: How to import contact from phone?

查看:264
本文介绍了Android的:如何从手机导入联系人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个接触的应用。我希望导入存储在手机和SIM卡插入我的应用程序中的所有联系人,但我不知道怎么写了code。任何帮助和提示或链接有用的答案将非常AP preciated。感谢您花费precious时间以查看这个问题。

I am making a contact application. I wish to import all the contacts stored in the phone and sim cards into my application, but I don't know how to write the code. Any help and hints or links to useful answers would be very much appreciated. Thanks for spending your precious time to view this question.

推荐答案

您需要使用:

Cursor contacts = getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null);

这里有一个完整的教程: HTTP ://saigeethamn.blogspot.in/2011/05/contacts-api-20-and-above-android.html

这篇关于Android的:如何从手机导入联系人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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