FileNotFoundException while trying to convert contacts to Vcard
- by AndRi
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?