Android calendar provider exception for recurring events

I am trying to use the CalendarContract content provider: http://developer.android.com/reference/android/provider/CalendarContract.Events.html

I seem to be unable to find anything regarding exclusion from recurring events.
I use instance URIs for the request .
I added an event (on calendar.google.com) and repeated it every day. Now I changed one of the time instances, and the content provider correctly gave me an exception:

// Original event instance: eventID: 320 instanceID: 651 startdate: Wed Mar 13 09:30:00 CET 2013 rrule: FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR original_event_id: null exrule: null exdate: null // Exception event instance: eventID: 333 instanceID: 888 startdate: Mon Mar 18 15:00:00 CET 2013 rrule: null original_event_id: 320 exrule: null exdate: null 

As you can see above, the source event does not have exrule and exdate , but the exception event still displays correctly (without overriding the instance of the source event)

Now here is my question: I want to add an exception to the repeating event myself. But I don’t know which fields I need to fill out and how it works. Since the above example does not help at all.

+1
source share
1 answer

I hastily posted this question. Inserting events into CalendarContract.Events.CONTENT_EXCEPTION_URI will handle all this ...

-1
source

Source: https://habr.com/ru/post/978455/


All Articles