Skip to content

Commit 2faa075

Browse files
Michael ChanAndroid (Google) Code Review
authored andcommitted
Merge "Update docs for launching custom app for calendar events" into jb-dev
2 parents 31a4cbf + 9a9001f commit 2faa075

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

core/java/android/provider/CalendarContract.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,17 @@ public final class CalendarContract {
105105
* and it should call {@link Activity#setResult(int)} with
106106
* {@link Activity#RESULT_OK} or {@link Activity#RESULT_CANCELED} to
107107
* acknowledge whether the action was handled or not.
108+
*
109+
* The custom app should have an intent-filter like the following
110+
* <pre>
111+
* {@code
112+
* <intent-filter>
113+
* <action android:name="android.provider.calendar.action.HANDLE_CUSTOM_EVENT" />
114+
* <category android:name="android.intent.category.DEFAULT" />
115+
* <data android:mimeType="vnd.android.cursor.item/event" />
116+
* </intent-filter>
117+
* }
118+
* </pre>
108119
* <p>
109120
* Input: {@link Intent#getData} has the event URI. The extra
110121
* {@link #EXTRA_EVENT_BEGIN_TIME} has the start time of the instance. The

0 commit comments

Comments
 (0)