daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Aug 19th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. How to get email id and address from contacts
  2. Cursor pCur = cr.query( ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null,
  3.             null, null);
  4.     String email = pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Email.DATA));
  5.    
  6. Cursor pCur = cr.query( ContactsContract.CommonDataKinds.Email.CONTENT_URI, null, null, null, null);
  7. String email = pCur.getString(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Email.DATA));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top