【发布时间】:2013-02-06 07:08:00
【问题描述】:
我浏览了这个SO forum and it says to add a header to the .vcs file,但是当我尝试通过单击打开.vcs 文件时,Android 系统弹出窗口会打开.vcs 文件和图像、视频、音频...但它没有添加到本地 Android 日历。
有人可以帮忙吗?
【问题讨论】:
标签: android calendar icalendar
我浏览了这个SO forum and it says to add a header to the .vcs file,但是当我尝试通过单击打开.vcs 文件时,Android 系统弹出窗口会打开.vcs 文件和图像、视频、音频...但它没有添加到本地 Android 日历。
有人可以帮忙吗?
【问题讨论】:
标签: android calendar icalendar
.vcs 对于今天的使用来说已经很老了。我建议您创建更新版本的 .ics 文件而不是 .vcs 并尝试以下操作;
header("Content-Type: text/Calendar");
header("Content-Disposition: attachment; filename=london2012.ics");
见Difference between iCalendar (.ics) and the vCalendar (.vcs)
【讨论】: