

Intent.ACTION_EDIT should be used when event is going to be updated. Intent.ACTION_INSERT should be used when event is going to be created. Different operations have to use different Intent action.They are Calendars, Events, Attendees, Reminders, Instances and Time. There are mainly 6 tables controlled under calendar structure.Using Intent approach can reduce the risk on handling calendar operations since trustable UI and UX are provided by system Android provides two approaches to handle Calendar operation and the recommended approach is handing off the operation to system Calendar app.COUNT defines the number of occurrence of the frequency.Īndroid would ignore the presence of COUNT if UNTIL is presented, i.e. UNTIL defines the end date of the frequency. UNTIL and COUNT contradict with each other. Repeat weekly on Monday until 1st January, 2020 FREQ=WEEKLY BYDAY=MO,TU UNTIL=20200101T000000Z.Count is 6 since total occurrence is 2x3 = 6. Repeat every Monday and Thursday on the upcoming 3 weeks.Repeat monthly until 1st January, 2020 FREQ=MONTHLY UNTIL=20200101T000000Z.Repeat yearly on the upcoming 3 years FREQ=YEARLY COUNT=3.It accepts the following parameters:Įxample: FREQ=WEEKLY BYDAY=MO,FR means the pattern repeats on every Monday and Friday weekly.

BYDAYīYDAY defines the list of weekday that the repeating pattern should be applied.

It accepts an integer value.Įxample: FREQ=DAILY COUNT=10 means repeating the event every day for 10 rounds, i.e. COUNTĬOUNT defines the number of occurrence of the frequency. It accepts a value in date format of yyyyMMdd'T'HHmmss'Z', e.g. FREQ (Frequency)įrequency defines how often the pattern is repeated. Here are the four common rules which could be able to handle most cases - FREQ, UNTIL, COUNT and BYDAY. There are lots of global standard recurrence rules. The rule is written in the format of and concatenated with others with semicolon. For example, FREQ=WEEKLY BYDAY=MO COUNT=3 represents a pattern repeating 3 times on every Monday weekly, i.e. Recurrence rule defines the repeating pattern for recurring events.
