+ * Output: Nothing. + */ + @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION) + public static final String ACTION_SET_ALARM = "android.intent.action.SET_ALARM"; + + /** + * Activity Extra: Provide a custom message for the alarm. + *
+ * This can be passed as an extra field in the Intent created with + * ACTION_SET_ALARM. + */ + public static final String EXTRA_MESSAGE = "android.intent.extra.alarm.MESSAGE"; + + /** + * Activity Extra: The hour of the alarm being set. + *
+ * This value can be passed as an extra field to the Intent created with + * ACTION_SET_ALARM. If it is not provided, the behavior is undefined and + * is up to the application. The value is an integer and ranges from 0 to + * 23. + */ + public static final String EXTRA_HOUR = "android.intent.extra.alarm.HOUR"; + + /** + * Activity Extra: The minutes of the alarm being set. + *
+ * This value can be passed as an extra field to the Intent created with
+ * ACTION_SET_ALARM. If it is not provided, the behavior is undefined and
+ * is up to the application. The value is an integer and ranges from 0 to
+ * 59.
+ */
+ public static final String EXTRA_MINUTES = "android.intent.extra.alarm.MINUTES";
+}
diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml
index ab0ff3f1032db..68a5a1405903a 100644
--- a/core/res/AndroidManifest.xml
+++ b/core/res/AndroidManifest.xml
@@ -242,6 +242,14 @@
android:description="@string/permdesc_writeHistoryBookmarks"
android:protectionLevel="dangerous" />
+
+