android - Intent to View Calendar for particular instance of event -


i've got trigger try open particular event in user's calendar application. problem here recurring events (somewhat expected) - opens event, , not event instance.

i don't have query here, i'm hitting instances table event id, start time, , end time.

public class calendaritem {      long eventid;     long starttime;     long endtime;      public calendaritem (long eventid, long starttime, long endtime) {             this.eventid = eventid;             this.starttime = starttime;             this.endtime = endtime;     }      public void opencalendarwithintent(){             uri uri = contenturis.withappendedid(events.content_uri, eventid);             intent calintent = new intent(intent.action_view).setdata(uri);             //calintent.putextra(calendarcontract.extra_event_begin_time, starttime);             //calintent.putextra(calendarcontract.extra_event_end_time, endtime);             calintent.setflags(intent.flag_activity_new_task);             context.startactivity(calintent);     } } 

with event, calendar open first instance of event. if add in flags (begin time , end time), opens "event" start time , end time, better, still not instance i'm looking for.

is there way open specific event instance?

alright, there error in earlier logic had "endtime" set incorrectly.

you can open specific instance as long as both extra_event_begin_time , extra_event_end_time match instance exactly.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -