0
我在我的windows phone 8.1应用程序中创建了一个Vcard(名片)。 mycontact.vcf。contact.vcf Vcard似乎不是有效的名片。 Windows phone 8.1 C#
我将该卡存储到我的手机内存。当我尝试打开该警报显示mycontact.vcf似乎不是有效的名片(Vcard)时。
当我在记事本中打开相同的文件,然后在那里显示数值数据。 我想在windows联系人中打开它。 我的代码在这里。
var vcf = new StringBuilder();
vcf.Append("Category:" + currentcontact.title + System.Environment.NewLine);
StorageFolder folder = Windows.Storage.KnownFolders.PicturesLibrary;
StorageFile sampleFile = await folder.CreateFileAsync("mycontact.vcf", CreationCollisionOption.ReplaceExisting);
await Windows.Storage.FileIO.WriteTextAsync(sampleFile, vcf.ToString());
我会感谢您的帮助。
你的VCF文件的实际内容是什么? – arnaudq