diff options
| -rwxr-xr-x | api/current.txt | 3 | ||||
| -rw-r--r-- | core/java/android/app/role/RoleManager.java | 23 |
2 files changed, 26 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index ff78d481f4de..0704018e430e 100755 --- a/api/current.txt +++ b/api/current.txt @@ -7307,7 +7307,10 @@ package android.app.role { method public android.content.Intent createRequestRoleIntent(java.lang.String); method public boolean isRoleAvailable(java.lang.String); method public boolean isRoleHeld(java.lang.String); + field public static final java.lang.String ROLE_BROWSER = "android.app.role.BROWSER"; field public static final java.lang.String ROLE_DIALER = "android.app.role.DIALER"; + field public static final java.lang.String ROLE_GALLERY = "android.app.role.GALLERY"; + field public static final java.lang.String ROLE_MUSIC = "android.app.role.MUSIC"; field public static final java.lang.String ROLE_SMS = "android.app.role.SMS"; } diff --git a/core/java/android/app/role/RoleManager.java b/core/java/android/app/role/RoleManager.java index 20e7f27b7be4..7cb245adb609 100644 --- a/core/java/android/app/role/RoleManager.java +++ b/core/java/android/app/role/RoleManager.java @@ -67,10 +67,33 @@ public final class RoleManager { /** * The name of the SMS role. + * + * @see Intent#CATEGORY_APP_MESSAGING */ public static final String ROLE_SMS = "android.app.role.SMS"; /** + * The name of the browser role. + * + * @see Intent#CATEGORY_APP_BROWSER + */ + public static final String ROLE_BROWSER = "android.app.role.BROWSER"; + + /** + * The name of the gallery role. + * + * @see Intent#CATEGORY_APP_GALLERY + */ + public static final String ROLE_GALLERY = "android.app.role.GALLERY"; + + /** + * The name of the music player role. + * + * @see Intent#CATEGORY_APP_MUSIC + */ + public static final String ROLE_MUSIC = "android.app.role.MUSIC"; + + /** * The action used to request user approval of a role for an application. * * @hide |