How to get user gmail contacts and send Email from android phone
How to get the Gmail contacts data includes like first Name,Last-name B Day Email address Phone Number and the User Photo.How to send Email to a gmail contact from the android Phone.Using th开发者_运维技巧e Face Book SDK we can able to get the user contacts details but the Gmail is not come up with a SDK how to get these details.
The class you're looking for is the ContactsContract. The documentation is here.
Nested within ContactContract is a table of common data types, for instance, the contact photo:
java.lang.Object ↳ android.provider.ContactsContract.CommonDataKinds.Photo
Once you have the contact information you need, this question covers using an intent to send an email.
精彩评论