【问题标题】:How to add .vcs file to Android Calendar如何将 .vcs 文件添加到 Android 日历
【发布时间】: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


    【解决方案1】:

    .vcs 对于今天的使用来说已经很老了。我建议您创建更新版本的 .ics 文件而不是 .vcs 并尝试以下操作;

    header("Content-Type: text/Calendar");
    header("Content-Disposition: attachment; filename=london2012.ics");
    

    Difference between iCalendar (.ics) and the vCalendar (.vcs)

    【讨论】:

    • 奇怪,我正在使用 php icalcreator 类,我也遇到了这个问题。我检查了标题输出的代码,如上所示。但在 Android 上,我只能获得上述通用选项。
    • 对我不起作用,.ics 或 .vcs 在 android 上默认不处理,但在三星设备上它实际上启动了“S planner”应用程序
    猜你喜欢
    • 1970-01-01
    • 2011-11-06
    • 1970-01-01
    • 1970-01-01
    • 2019-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多