tags:

views:

1203

answers:

5

Are there any possibilities to extract contacts in some of the following formats, vCard, hCard or json/xml, using the standard Android API?

A: 

You can use the Android SDK to access the contacts, but there are no built-in methods that I am aware of to export in any of those formats.

CommonsWare
A: 

Android contacts are synced with the Gmail contacts, and for those, there is an API. Conversion from the data you get back from there, is another matter.

Alister Bulman
+3  A: 

I think this will help you. This is an open-source project on "import/export contacts from/to a vCard (vcf) file".

Michaël
A: 

The Android 2.0 SDK has a import/export option to export or import contacts in VCard format.

Is there any API to achieve this functionality.

Safy
noticed the same. (good question)
Schildmeijer
+1  A: 

i believe CONTENT_VCARD_URI is what you're looking for, at least for android 2.0 (api level 5).

i just lucked up and found it.

jason gilbert