Create recurrence rule for event (RRULE) in Android programatically

1.6k Views Asked by At

Is there a way of programmatically generating a rrule string for an event in Android?

I found the RecurrenceEvent class in the Android source that generates a String from its fields. However, it does not seem to be accessible.

2

There are 2 best solutions below

0
On

You should refer to the RFC5545, in the specific to:

I'm currently looking for an easy way of creating recurrent events on Android's Calendar content provider. I'll edit my answer if I'll have more info to share.

Hope it helps! ;)

2
On

In Android 4.0+, A recurring rule is stored inside the RRULE column in CalendarContracts.Events.

See here on how to Query CalendarContracts and fetch that column of the event.