Detect Device Type In Java Web Application explain about identifying the device type such as desktop, tablet or mobile of client by accessing your Website.
For example, in your project you need to show 2 different versions of website. One is for mobile viewers and another for desktop viewers. For this you need to identify whether the request coming form a Mobile device. After detecting device type using user-agents string from HttpServletRequest. you can forward to different urls.
How to identify whether a user request is coming from Mobile/Tablet/Desktop?
For identifying the device type (whether the request is coming from mobile, tablet or desktop), you need to parse User-Agents string in your java web application, It is server side device detection.
We have following 3 approaches to detect the device types by parsing User-Agents.
1) By Using UADetector
2) By Using user-agent-utils
3) By Using Spring Framework