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

calender image data


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -