am cbce4eda: Merge "docs: change calendar overview to recommend using data URI instead of MIME type for event intents" into ics-mr0
* commit 'cbce4eda4fae6b18efde9aa161a665e92a36c969': docs: change calendar overview to recommend using data URI instead of MIME type for event intents
This commit is contained in:
@@ -264,10 +264,11 @@ the {@link android.Manifest.permission#READ_CALENDAR} permission (for read acces
|
|||||||
|
|
||||||
<h4>Event intent</h4>
|
<h4>Event intent</h4>
|
||||||
|
|
||||||
<p>If all you want to do is add an event to the user’s calendar, you can use an
|
<p>If all you want to do is add an event to the user’s calendar, you can use an {@link
|
||||||
{@link android.content.Intent#ACTION_INSERT} intent with a {@code "vnd.android.cursor.item/event"}
|
android.content.Intent#ACTION_INSERT} intent with the data defined by {@link
|
||||||
MIME type to start an activity in the Calendar app that creates new events. Using the intent does
|
android.provider.CalendarContract.Events#CONTENT_URI Events.CONTENT_URI} in order to start an
|
||||||
not require any permission and you can specify event details with the following extras:</p>
|
activity in the Calendar app that creates new events. Using the intent does not require any
|
||||||
|
permission and you can specify event details with the following extras:</p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>{@link android.provider.CalendarContract.EventsColumns#TITLE Events.TITLE}: Name for the
|
<li>{@link android.provider.CalendarContract.EventsColumns#TITLE Events.TITLE}: Name for the
|
||||||
|
|||||||
Reference in New Issue
Block a user