Skip to main content

FireflyApi system information

3.1 System information

  1. FireflyApiversion information

    Function:public String getFireflyApiVersion()
    Description:FireflyApi version information
    Example:
  2. Get the current device model

    Function:public String getAndroidModel()
    Description:Get the current device model
    Example:
  3. Get the current device android system version

    Function:public String getAndroidVersion()
    Description:Get the current device android system version
    Example:
  4. Get the RAM size of the device. The unit of measurement is MB

    Function:public long getRamSpace()
    Description:Get the RAM size of the device. The unit of measurement is MB
    Return:Returns the RAM size in MB
    Example:
  5. Get the RAM size of the device and format it as String

    Function:public String getFormattedRamSpace()
    Description:Get the RAM size of the device and format it as String
    Return: The RAM size of the device, String format (1.5GB)
    Example:
  6. Get the built-in Flash size of the device. The unit of measurement is MB

    Function:public long getFlashSpace()
    Description:Get the built-in Flash size of the device. The unit of measurement is MB
    Return: Returns the Flash size in MB
    Example:
  7. Get the built-in Flash size of the device,and format it as String

    Function:public String getFormattedFlashSpace()
    Description:Get the built-in Flash size of the device,and format it as String
    Return: The Flash size of the device, String format (1.5GB)
    Example:
  8. Get the firmware kernel version of the device

    Function:public String getFormattedKernelVersion()
    Description:Get the firmware kernel version of the device
    Return: Kernel version
    Example:
  9. Get the firmware system version and compile date of the device

    Function:public String getAndroidDisplay()
    Description:Get the firmware system version and compile date of the device
    Return: Firmware system version and compile date
    Example: