Class Android


  • public final class Android
    extends Object
    This class stores several information given by the Android operating systems. The stored informations are used by the arakhneVmutil tools to proceed several tasks, such as OperatingSystem.
    Since:
    7.0
    Version:
    17.0 2020-01-04 14:41:35
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    vmutils
    • Method Detail

      • makeAndroidApplicationName

        @Pure
        public static String makeAndroidApplicationName​(String applicationName)
        Make a valid android application name from the given application name. A valid android application name is a package name followed by the name of the application.
        Parameters:
        applicationName - is the simple application name.
        Returns:
        the android application name.
      • getContextResolverClass

        @Pure
        public static Class<?> getContextResolverClass()
                                                throws Android.AndroidException
        Replies the class ContextResolver from Android.
        Returns:
        the class ContextResolver from Android.
        Throws:
        Android.AndroidException - when the class cannot be found.
      • initialize

        public static void initialize​(Object androidContext)
                               throws Android.AndroidException
        Extract informations from the current Context of the android task.
        Parameters:
        androidContext - is the Android Context.
        Throws:
        Android.AndroidException - when the information cannot be extracted.