I have a calendar view where I set events, but I have no idea how to handle recurring events. I get the value of Event.RRULE with the cursor:
String rrule = cursor.getString(cursor.getColumnIndex(Events.RRULE));
For example, the value of rrule:
FREQ=WEEKLY;BYDAY=MO,WE,FR;INTERVAL=1 FREQ=MONTHLY;BYMONTHDAY=6;INTERVAL=2
How do I get the values from this row to set them as calendar values?
For example, I want to get Monday - MO to set it in a Calendar object
Calendar c = Calendar.getInstance(); c.set(Calendar.DAY_OF_WEEK, Calendar.MONDAY);
source share