从Android的联系人列表中获取电子邮件 [英] get email from android contact list
本文介绍了从Android的联系人列表中获取电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何让Android中的联系人选择的人的电子邮件ID编程
how to get selected person email id programmatically in android contacts
这应该支持试图与人类的所有version.i但主要电子邮件的方法是pcated德$ P $
that should support all version.i tried with people class but there primary email method is deprecated
在此先感谢
阿斯旺
推荐答案
有关API以前的版本5,你必须使用联系人
类和5起,你必须使用在 ContactsContract
类。
For API versions prior 5 you have to use the Contacts
class and for 5 onwards you have to use the ContactsContract
class.
您需要查询API的版本,并在那决定使用哪一个类。
You have to query the API version and upon that decide which class to use.
这篇关于从Android的联系人列表中获取电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文