问题
I went through this SO forum and it says to add a header to the .vcs file but when I try to open the .vcs file by clicking on it an Android system popup comes to open the .vcs file and Image, Video, Audio... but it does not added to the local Android Calendar.
Can any one help with this?
回答1:
.vcs is very old for today usage. I recommend you to create newer version .ics file instead of .vcs and try the following;
header("Content-Type: text/Calendar");
header("Content-Disposition: attachment; filename=london2012.ics");
See Difference between iCalendar (.ics) and the vCalendar (.vcs)
来源:https://stackoverflow.com/questions/14723469/how-to-add-vcs-file-to-android-calendar