Android endTime参数不存在';当使用插入意图时,t在Google Calendar 5.0上工作

Android endTime参数不存在';当使用插入意图时,t在Google Calendar 5.0上工作,android,android-intent,google-calendar-api,Android,Android Intent,Google Calendar Api,由于谷歌将日历应用程序更新为5.0版,插入意图时发送的额外数据“endTime”(CalendarContract.extra\u EVENT\u END\u TIME)被忽略 Intent intent = new Intent(Intent.ACTION_INSERT); Log.v("test", CalendarContract.Events.CONTENT_URI.toString()); intent.setData(C

由于谷歌将日历应用程序更新为5.0版,插入意图时发送的额外数据“endTime”
(CalendarContract.extra\u EVENT\u END\u TIME)
被忽略

Intent intent = new Intent(Intent.ACTION_INSERT);
                Log.v("test", CalendarContract.Events.CONTENT_URI.toString());
                intent.setData(CalendarContract.Events.CONTENT_URI);
                intent.putExtra(CalendarContract.Events.TITLE, title);
                intent.putExtra(CalendarContract.Events.DESCRIPTION, description);
                intent.putExtra(CalendarContract.Events.EVENT_LOCATION,location);
                intent.putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, longMilisBeginTime);
                intent.putExtra(CalendarContract.EXTRA_EVENT_END_TIME, longMilisEndTime);
                startActivity(intent);
有人能给我一些线索吗


谢谢。

,我仍然在文档中看到putExtra(CalendarContract.EXTRA\u EVENT\u END\u TIME,endTime.getTimeInMillis())。这是你指的同一个链接吗?是的。但在新版谷歌日历中,“插入事件”活动忽略endTime,并始终使用beginTime+1hour填充事件endTime字段。有人知道这是一个bug还是一个解决方法?我看到了同样的行为。我的结束时间设置停止工作,所有事件都安排在一小时内。