@Test public void testGetOs_android() throws Exception { OsDetection detection = new OsDetectionImpl( "Mozilla/5.0 (Linux; U; Android 2.3.3; zh-tw; HTC_Pyramid Build/GRI40) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"); assertTrue("Android expected", detection.isAndroid()); }
@Override public boolean isAndroid() { return isAndroidTablet() || isAndroidPhone(); }
OsDetectionImpl implements OsDetection { @Override public boolean isAndroid() { return isAndroidTablet() || isAndroidPhone(); } }
OsDetectionImpl implements OsDetection { @Override public boolean isAndroid() { return isAndroidTablet() || isAndroidPhone(); } OsDetectionImpl();  OsDetectionImpl(String agent); }
OsDetectionImpl implements OsDetection { @Override public boolean isAndroid() { return isAndroidTablet() || isAndroidPhone(); } OsDetectionImpl();  OsDetectionImpl(String agent); @Override boolean isAndroid(); @Override boolean isIPhone(); @Override boolean isIPad(); @Override boolean isIOs(); boolean isIOS5(); boolean isIOS6(); boolean isIOS7(); @Override boolean isRetina(); @Override boolean isDesktop(); @Override boolean isTablet(); @Override boolean isAndroidTablet(); @Override boolean isAndroidPhone(); @Override boolean isPhone(); @Override boolean isBlackBerry(); @Override boolean isWebkit(); }
OsDetectionImpl implements OsDetection { @Override public boolean isAndroid() { return isAndroidTablet() || isAndroidPhone(); } OsDetectionImpl();  OsDetectionImpl(String agent); @Override boolean isAndroid(); @Override boolean isIPhone(); @Override boolean isIPad(); @Override boolean isIOs(); boolean isIOS5(); boolean isIOS6(); boolean isIOS7(); @Override boolean isRetina(); @Override boolean isDesktop(); @Override boolean isTablet(); @Override boolean isAndroidTablet(); @Override boolean isAndroidPhone(); @Override boolean isPhone(); @Override boolean isBlackBerry(); @Override boolean isWebkit();  }