Loading api/current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -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"; } core/java/android/app/role/RoleManager.java +23 −0 Original line number Diff line number Diff line Loading @@ -67,9 +67,32 @@ 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. * Loading Loading
api/current.txt +3 −0 Original line number Diff line number Diff line Loading @@ -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"; }
core/java/android/app/role/RoleManager.java +23 −0 Original line number Diff line number Diff line Loading @@ -67,9 +67,32 @@ 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. * Loading