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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -