FileNotFoundException while trying to convert contacts to Vcard

Posted by AndRi on Stack Overflow See other posts from Stack Overflow or by AndRi
Published on 2010-03-31T11:26:24Z Indexed on 2010/05/26 3:01 UTC
Read the original article Hit count: 297

Filed under:

Hi

I m trying to convert the contacts on emulator to VCard format using the code below

AssetFileDescriptor afd =openAssetFileDescriptor(Contacts.CONTENT_VCARD_URI ,"r")

The stack Trace says java.io.FileNotFoundException No file at content://com.android.contacts/contacts/as_vcard

Do we need to attach a file to the URI ? Is there some other way to convert Contacts to Vcard in Android?

© Stack Overflow or respective owner

Related posts about android