How to add an entry in the Android Calendar from a

2020-02-28 05:17发布

I am looking for an example or documentation on how to create a hyperlink to the Android Calendar app's Add Event screen.

For example, in the same way that one can create a call hyperlink with:

<a href="tel:5556665555">Call</a>

I am looking for info on whether it is possible to link to the Android Calendar's Add Event screen, with something like:

<a href="calendar:YYYY-MM-DDThh:mmTZD?end=YYYY-MM-DDThh:mmTZD&name=Appointment>Add Calendar Entry</a>

I am willing to use the Google Calendar Web API specifically, but haven't found any working solution.

Here's a forum post with someone looking for a web-based call that works on Android.

http://www.google.com/support/forum/p/Calendar/thread?tid=6fc0598cd1619e19&hl=en

2条回答
三岁会撩人
2楼-- · 2020-02-28 05:56

I think the easiest way would be generate a server side vCal or iCal file download.

For example, Plone CMS does so here:

http://plone.org/events/community/plone-conference-2011

See vCal link.

More info:

https://en.wikipedia.org/wiki/VCal

查看更多
做个烂人
3楼-- · 2020-02-28 06:07

When the WebView is embedded in an android app, a custom URI handler can be set up as a way for the embedded window to invoke Android OS actions, such as a new Calendar Event, through the custom URI.

查看更多
登录 后发表回答