1. The Android standard calendar interface became available at Android API level 14, which means you need Android 4.0 or later.
2. Adding a calendar entry uses the insert URI intent (available in Sailforms) but changing an entry uses the edit URI intent (not available in Sailforms).
3. Ideally one should use an implicit URI intent as that should work with any calendar app (that supports the standard interface) rather than an explicit intent that is directed to a specified app.
4. On a Nexus 7 running Android 6.0 the Google calendar events interface is successfully found by the string:
com.android.calendar/events
but I don't know for certain whether that is an implicit or an explicit intent!!!
5. The insert intent, having found the calendar, does not put the information straight into the calendar (leaving the user in Sailforms) but presents a calendar event creation window displaying any information it could find from the intent parameters (extras in Android-speak) giving the user the option to complete and save the entry, or discard it.
6. The Sailforms URI intent commands allow (as far as I can work out) only string parameters to be passed to the app. In particular, for a calendar entry, this means I can find no wayc of passing to the calendar:
- event start time (long integer, "milliseconds since epoch"),
- event end time (ditto),
- calendar id if the app holds more than one (integer)
7. To send a new event to the calendar you need a URI intent of type insert, with the following text string:
content://com.android.calendar/events?title=event_title
where event_title is the title for the event.
8. Further string parameters (in addition to the title) can be added at the end of the string in the format:
¶meter_name=parameter_value
Potentially useful (and working) parameters are:
eventLocation
description
Right. That's as much as I have been able to achieve. I've attached my test form.
Have we any experts out there who can take us further?
Mike
Mike
https://calshare.de/20200730T0800/20200730T0900/Appointment/Paris%2C+France/New+job%21