diff options
-rw-r--r-- | api/current.txt | 1 | ||||
-rw-r--r-- | core/java/android/content/pm/LauncherActivityInfo.java | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 81362f1..2a7432e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -7735,6 +7735,7 @@ package android.content.pm { method public long getFirstInstallTime(); method public android.graphics.drawable.Drawable getIcon(int); method public java.lang.CharSequence getLabel(); + method public java.lang.String getName(); method public android.os.UserHandle getUser(); } diff --git a/core/java/android/content/pm/LauncherActivityInfo.java b/core/java/android/content/pm/LauncherActivityInfo.java index 92b9146..6bf3638 100644 --- a/core/java/android/content/pm/LauncherActivityInfo.java +++ b/core/java/android/content/pm/LauncherActivityInfo.java @@ -121,6 +121,14 @@ public class LauncherActivityInfo { } /** + * Returns the name for the acitivty from android:name in the manifest. + * @return the name from android:name for the acitivity. + */ + public String getName() { + return mActivityInfo.name; + } + + /** * Returns the activity icon with badging appropriate for the profile. * @param density Optional density for the icon, or 0 to use the default density. * @return A badged icon for the activity. |