从Android的联系人列表中获取电子邮件电子邮件、联系人、列表中、Android

由网友(挥着肉棒的男孩)分享简介:如何让Android中的联系人选择的人的电子邮件ID编程how to get selected person email id programmatically in android contacts 这应该支持试图与人类的所有version.i但主要电子邮件的方法是pcated德$ P $ that sh...

如何让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.

阅读全文

相关推荐

最新文章