code: public static OSType calculateOS()
      {
          String vendor = System.getProperty("java.vendor");
          if ("The Android Project".equals(vendor))
          {
              return OSType.ANDROID;
          }
          String osName = System.getProperty("os.name");
          osName = osName.toLowerCase(Locale.ENGLISH);
          if (osName.startsWith("mac os"))
          {
              return OSType.APPLE;
          }
          if (osName.startsWith("windows"))
          {
              return OSType.WINDOWS;
          }
          if (osName.startsWith("linux"))
          {
              return OSType.LINUX;
          }
          if (osName.startsWith("sun"))
          {
              return OSType.SUN;
          }
          return OSType.UNKNOWN;
      }
docs: Calculates the current OSType
  
  @return The current OSType