Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add an entry in the Android Calendar from an html5 mobile web page?

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

like image 632
kg. Avatar asked Oct 08 '11 23:10

kg.


1 Answers

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

like image 51
Mikko Ohtamaa Avatar answered Nov 09 '22 03:11

Mikko Ohtamaa