Android Utililty Methods OS Check

List of utility methods to do OS Check

Description

The list of methods to do OS Check are organized into topic(s).

Method

StringgetOS()
determine the OS name
return System.getProperty("os.name");
booleanisLinux()
is Linux
return getOS().startsWith("Linux");
booleanisWindows()
is Windows
return getOS().startsWith("Windows");