How to get android contacts in Vcard format using android native API
问题 I am trying to read Android device contacts in VCard format using Android Api. i found one link for the same: Android contatcs vcard API and trying to write the same code but its not working, as I am not able to get the lookupkey: ContentResolver cr = getContentResolver(); Cursor cur = cr.query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null); int num = cur.getCount(); // I get 2 , as there are two contacts String lookupKey = cur.getString(cur.getColumnIndex(Contacts.LOOKUP_KEY)