¡@

Home 

2014/10/16 ¤W¤È 08:21:26

android Programming Glossary: phonecur

Access contacts and get email address

http://stackoverflow.com/questions/10599578/access-contacts-and-get-email-address

List if cur.moveToFirst String id cur .getString cur .getColumnIndexOrThrow ContactsContract.Contacts._ID Cursor phoneCur contect_resolver.query ContactsContract.CommonDataKinds.Phone.CONTENT_URI null ContactsContract.CommonDataKinds.Phone.CONTACT_ID.. null ContactsContract.CommonDataKinds.Email.CONTACT_ID new String id null if phoneCur.moveToFirst name phoneCur .getString phoneCur .getColumnIndex ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME .. null ContactsContract.CommonDataKinds.Email.CONTACT_ID new String id null if phoneCur.moveToFirst name phoneCur .getString phoneCur .getColumnIndex ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME no phoneCur .getString phoneCur..