EndTime parameter not working in Google Calendar 5.0 when using Intent
Since Google updated the Calendar app to version 5.0, the extra "endTime" data (CalendarContract.EXTRA_EVENT_END_TIME)
sent to the insert intent is ignored.
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);
Can anyone bring me some light?
Thank.
+3
source to share
No one has answered this question yet
Check out similar questions: