Android Calendar: Recurring event is continuing for all the month but I need to repeat it on certain dates in every month -
i'm loading both recurring event , one-time events calendar. one-time event working fine in recurring event events continuing next days, had given recurrence rule values.put(calendarcontract.events.rrule,"freq=monthly;"+"bymonthday"+"=" + type + ";");
(here type
i'm passing dates in event have repeat). below snippet of code , image of output image
contentvalues values = new contentvalues(); values.put(calendarcontract.events.calendar_id, 1); values.put(calendarcontract.events._id, id); values.put(calendarcontract.events.dtstart, eventstart.gettime()); values.put(calendarcontract.events.rrule, "freq=monthly;" + "bymonthday" + "=" + type + ";"); values.put(calendarcontract.events.duration, "p" + eventend.gettime() + "s"); values.put(calendarcontract.events.title, name); values.put(calendarcontract.events.event_location, location); values.put(calendarcontract.events.event_timezone, timezone.getdefault().getid()); values.put(calendarcontract.events.event_color, color.parsecolor("#03a9f4"));
Comments
Post a Comment