Mobile Detector
Java library to detect mobile devices and tablets
<dependency>
<groupId>de.sstoehr</groupId>
<artifactId>mobile-detector</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
Usage
Detecting device by user agent:
MobileDetector mobileDetector = new MobileDetector();
Device device = mobileDetector.detectBy("userAgent string");
// device.type() - UNKNOWN, DESKTOP, MOBILE, TABLET
// device.platform() - UNKNOWN, IOS, ANDROID