public class AndroidUtils
extends java.lang.Object
Constructor and Description |
---|
AndroidUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
androidBuildVersion()
Returns a String summarising the Android build information.
|
static java.lang.String |
formatBytes(long bytes)
Returns a formatted string representation of the number of bytes specified.
|
static long |
getAvailableExternalMemorySize()
Returns the number of bytes of external storage available.
|
static long |
getTotalExternalMemorySize()
Returns the total number of bytes of external storage.
|
static boolean |
isSDCardMounted()
Returns whether or not there is an SD card mounted.
|
static void |
reportDisplayInformation(Activity activity)
Reports to the log information about the device's display.
|
public static java.lang.String androidBuildVersion()
public static boolean isSDCardMounted()
public static long getAvailableExternalMemorySize()
public static long getTotalExternalMemorySize()
public static java.lang.String formatBytes(long bytes)
bytes
- The number of bytes to be reported.public static void reportDisplayInformation(Activity activity)
activity
- The Activity to report on.