From aea4b678b5f59f63ba6810f94dbc40ea4139e708 Mon Sep 17 00:00:00 2001 From: Bernd Holzhey Date: Wed, 31 Mar 2010 09:46:13 +0200 Subject: [PATCH] Add a new intent category used for activities running in carmode. Change-Id: I4702538c9f53cc0b64eae72298e27232cdfb3548 --- api/current.xml | 11 +++++++++++ core/java/android/content/Intent.java | 9 ++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/api/current.xml b/api/current.xml index 53f5178c78f61..a4aeb85152395 100644 --- a/api/current.xml +++ b/api/current.xml @@ -38684,6 +38684,17 @@ visibility="public" > + + {@link #CATEGORY_TEST} *
  • {@link #CATEGORY_CAR_DOCK} *
  • {@link #CATEGORY_DESK_DOCK} + *
  • {@link #CATEGORY_CAR_MODE} * * *

    Standard Extra Data

    @@ -2023,6 +2024,12 @@ public class Intent implements Parcelable, Cloneable { @SdkConstant(SdkConstantType.INTENT_CATEGORY) public static final String CATEGORY_DESK_DOCK = "android.intent.category.DESK_DOCK"; + /** + * Used to indicate that the activity can be used in a car environment. + */ + @SdkConstant(SdkConstantType.INTENT_CATEGORY) + public static final String CATEGORY_CAR_MODE = "android.intent.category.CAR_MODE"; + // --------------------------------------------------------------------- // --------------------------------------------------------------------- // Standard extra data keys. @@ -2118,7 +2125,7 @@ public class Intent implements Parcelable, Cloneable { * number to call in a {@link android.content.Intent#ACTION_CALL}. */ public static final String EXTRA_PHONE_NUMBER = "android.intent.extra.PHONE_NUMBER"; - + /** * Used as an int extra field in {@link android.content.Intent#ACTION_UID_REMOVED} * intents to supply the uid the package had been assigned. Also an optional