Package com.parse

Class ManifestInfo


  • public class ManifestInfo
    extends java.lang.Object
    A utility class for retrieving app metadata such as the app name, default icon, whether or not the app declares the correct permissions for push, etc.
    • Constructor Summary

      Constructors 
      Constructor Description
      ManifestInfo()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Bundle getApplicationMetadata​(Context context)  
      static java.lang.String getDisplayName​(Context context)
      Returns the display name of the app used by the app launcher, as specified by the android:label attribute in the element of the manifest.
      static int getIconId()
      Returns the default icon id used by this application, as specified by the android:icon attribute in the element of the manifest.
      static int getVersionCode()
      Returns the version code for this app, as specified by the android:versionCode attribute in the element of the manifest.
      static java.lang.String getVersionName()
      Returns the version name for this app, as specified by the android:versionName attribute in the element of the manifest.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ManifestInfo

        public ManifestInfo()
    • Method Detail

      • getVersionCode

        public static int getVersionCode()
        Returns the version code for this app, as specified by the android:versionCode attribute in the element of the manifest.
      • getVersionName

        public static java.lang.String getVersionName()
        Returns the version name for this app, as specified by the android:versionName attribute in the element of the manifest.
      • getDisplayName

        public static java.lang.String getDisplayName​(Context context)
        Returns the display name of the app used by the app launcher, as specified by the android:label attribute in the element of the manifest.
      • getIconId

        public static int getIconId()
        Returns the default icon id used by this application, as specified by the android:icon attribute in the element of the manifest.
      • getApplicationMetadata

        public static Bundle getApplicationMetadata​(Context context)
        Returns:
        A Bundle if meta-data is specified in AndroidManifest, otherwise null.