最佳答案
尝试将以下代码导出到VCard:
原文链接:https://www.f2er.com/android/531426.htmlUri uri = Uri.withAppendedPath(ContactsContract.Contacts.CONTENT_VCARD_URI,lookupKey);
AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri,"r");
FileInputStream fis = fd.createInputStream();
byte[] buf = new byte[(int)fd.getDeclaredLength()];
if (0 < fis.read(buf))
{
String vCard = new String(buf);
}