Class Android


  • final class Android
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Android()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static <T> java.lang.Class<T> getClassForName​(java.lang.String name)  
      (package private) static java.lang.Class<?> getMemoryClass()
      Returns the memory class or null if not on Android device.
      (package private) static boolean isOnAndroidDevice()
      Returns true if running on an Android device.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ASSUME_ANDROID

        private static boolean ASSUME_ANDROID
      • MEMORY_CLASS

        private static final java.lang.Class<?> MEMORY_CLASS
      • IS_ROBOLECTRIC

        private static final boolean IS_ROBOLECTRIC
    • Constructor Detail

      • Android

        private Android()
    • Method Detail

      • isOnAndroidDevice

        static boolean isOnAndroidDevice()
        Returns true if running on an Android device.
      • getMemoryClass

        static java.lang.Class<?> getMemoryClass()
        Returns the memory class or null if not on Android device.
      • getClassForName

        private static <T> java.lang.Class<T> getClassForName​(java.lang.String name)