如何从android 1.6中的联系人中获取电子邮件ID?
你好 我正在开发一个基于联系人的应用程序,因为我想从联系人中获取电子邮件 ID 到我的应用程序
我正在为 android 1.6 开发应用程序
请任何人帮助我做到这一点。提前致谢
Hi
I am developing a contact based application in that i want get the email id from the contacts to my application
I am developing the application for android 1.6
Please any on help me to do that.Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以参考此链接 http://thinkandroid.wordpress.com/2010/01/19/retriving-contact-information-name-number-and-profile-picture/
找到行
String[] columns = new String[ ] { People.NAME, People.NUMBER };
您可以使用此 http://developer.android.com/参考/android/provider/Contacts.People.html#PRIMARY_EMAIL_ID
获取电子邮件 ID。我对此不确定,但是是的,你可以尝试一下
You can refer to this link http://thinkandroid.wordpress.com/2010/01/19/retrieving-contact-information-name-number-and-profile-picture/
find the line
String[] columns = new String[] { People.NAME, People.NUMBER };
and you can use this http://developer.android.com/reference/android/provider/Contacts.People.html#PRIMARY_EMAIL_ID
to get email id. I am not sure on this but yes you can give it a try