File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -264,10 +264,11 @@ the {@link android.Manifest.permission#READ_CALENDAR} permission (for read acces
264264
265265<h4>Event intent</h4>
266266
267- <p>If all you want to do is add an event to the user’s calendar, you can use an
268- {@link android.content.Intent#ACTION_INSERT} intent with a {@code "vnd.android.cursor.item/event"}
269- MIME type to start an activity in the Calendar app that creates new events. Using the intent does
270- not require any permission and you can specify event details with the following extras:</p>
267+ <p>If all you want to do is add an event to the user’s calendar, you can use an {@link
268+ android.content.Intent#ACTION_INSERT} intent with the data defined by {@link
269+ android.provider.CalendarContract.Events#CONTENT_URI Events.CONTENT_URI} in order to start an
270+ activity in the Calendar app that creates new events. Using the intent does not require any
271+ permission and you can specify event details with the following extras:</p>
271272
272273<ul>
273274 <li>{@link android.provider.CalendarContract.EventsColumns#TITLE Events.TITLE}: Name for the
You can’t perform that action at this time.
0 commit comments