tags:

views:

50

answers:

3

Hi All,

I want to implement a web application with separate user interface for mobile and pc. Do you know how can I detect whether it's mobile or not? And in general, Do you have any suggestion for implementing such application in gwt?

Thanks Marjan

+4  A: 

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

Navigator.getPlatform
Navigator.getUserAgent

and identify devices and platforms that way.

Hope this helps!

Nico Adams
+3  A: 

There were a few posts regarding handling the mobile version of Safari in GWT and touch applications on Lombardi Development blog:

There might be some other posts there that could interest you - have fun digging :)

Igor Klimer
A: 

Thanks Nico for the help and Igor for suggesting that blog :)

Marjan