Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting mobile browser in GWT [closed]

I want to implement a web application with separate user interface for mobile and PC. Do you know how can I detect whether it is mobile or not? In general, do you have any suggestion for implementing such application in GWT?

like image 342
Marjan Avatar asked Jul 02 '10 14:07

Marjan


1 Answers

On the client side, you can use the Navigator class to get the platform and the user agent string:

Navigator.getPlatform
Navigator.getUserAgent

Identify devices and platforms that way.

like image 100
Nico Adams Avatar answered Oct 29 '22 22:10

Nico Adams