java - Calendar Event via Intent does not set Start Date and End Date -
i have stucked in problem start date , end date not setting in calendar event please let me know whats problem here code
intent intent = new intent(intent.action_edit); intent.settype("vnd.android.cursor.item/event"); mycalendar.set(calendar.year, year); mycalendar.set(calendar.month, monthofyear); mycalendar.set(calendar.day_of_month, dayofmonth); mycalendar.set(calendar.hour_of_day, hours); mycalendar.set(calendar.minute, minutes); log.d("endtime", mycalendar.gettime().tostring()); intent.putextra("allday", false); intent.putextra("rrule", "freq=yearly"); intent.putextra("endtime", mycalendar.gettime().tostring()); intent.putextra("title", data.gettitle()); startactivity(intent);
log d/endtime: thu apr 13 12:00:00 gmt+05:00 2017 doesn't set in calender
here screen shot please have look
Comments
Post a Comment