I am developing an application which reads all the events from the calendar.ics
file and then display all the events. My code works fine with individual events and i am able to extract all the events from the file because it contains all the events.
But when i create recurring events then i can't get all the events except for the first one, because calendar.ics
file contains "RRULE"
instead of all the events.
I have tried "rfc2445.jar"
but it didn't work or maybe i don't know exactly how to use it...
Is there any library/code/method/function anything which could help me to parse and display all the events?
CalendarBuilder builder = new CalendarBuilder();
Calendar calendar = null;
calendar = builder.build(file);
Log.d("RRULE 1: ", component.getProperty("RRULE").getName());
Log.d("RRULE 2: ", component.getProperty("RRULE").getValue());
Log.d("RRULE 3: DTSTART: ",component.getProperty("DTSTART").getValue());
Log.d("RRULE 4: DTEND: ", component.getProperty("DTEND").getValue());
.......
above is the snippet of my code and i got the following results
D/RRULE 1:: RRULE
D/RRULE 2:: FREQ=DAILY;COUNT=184
D/RRULE 3: DTSTART:: 20160701T170000
D/RRULE 4: DTEND:: 20160701T200000
I don't know how to parse all the events from FREQ ?