且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-02-25 10:41:34

有关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.