Merge "Update docs for launching custom app for calendar events" into jb-dev

This commit is contained in:
Michael Chan
2012-05-15 16:30:15 -07:00
committed by Android (Google) Code Review

View File

@@ -105,6 +105,17 @@ public final class CalendarContract {
* and it should call {@link Activity#setResult(int)} with * and it should call {@link Activity#setResult(int)} with
* {@link Activity#RESULT_OK} or {@link Activity#RESULT_CANCELED} to * {@link Activity#RESULT_OK} or {@link Activity#RESULT_CANCELED} to
* acknowledge whether the action was handled or not. * acknowledge whether the action was handled or not.
*
* The custom app should have an intent-filter like the following
* <pre>
* {@code
* <intent-filter>
* <action android:name="android.provider.calendar.action.HANDLE_CUSTOM_EVENT" />
* <category android:name="android.intent.category.DEFAULT" />
* <data android:mimeType="vnd.android.cursor.item/event" />
* </intent-filter>
* }
* </pre>
* <p> * <p>
* Input: {@link Intent#getData} has the event URI. The extra * Input: {@link Intent#getData} has the event URI. The extra
* {@link #EXTRA_EVENT_BEGIN_TIME} has the start time of the instance. The * {@link #EXTRA_EVENT_BEGIN_TIME} has the start time of the instance. The