Re: Detecting mobile phones browser

2010-08-15 Thread Shawn Brown
 I wont to know if by checking the user.agent property in the gwt.xml

I don't know what that returns but have seen this in my servlets with
Android 2.1

GET /myCache.manifest HTTP/1.1 200 1120 - Mozilla/5.0 (Linux; U;
Android 2.1-update1; en-us; HTC Magic Build/EPE54B) AppleWebKit/530.17
(KHTML, like Gecko) Version/4.0 Mobile Safari/530.17,gzip(gfe)

...so if user.agent isn't telling you, I think you can figure it out
server side.  User agent would return safari for this phone wouldn't
it?


 And also, are there nasty restrictions on the JS (thus GWT classes)
 on those browsers ?(at least for those very widely used)

I haven't seen any on the browser used for Android 2.1

Shawn

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Detecting mobile phones browser

2010-08-15 Thread Thomas Broyer


On 14 août, 14:32, Ice13ill andrei.fifi...@gmail.com wrote:
 I wont to know if by checking the user.agent property in the gwt.xml
 file I can detect if the client is using a browser on a mobile phone
 (like HTC wiht Android, or IPhone etc)

 And also, are there nasty restrictions on the JS (thus GWT classes)
 on those browsers ?(at least for those very widely used)

See http://code.google.com/p/gwt-mobile-webkit/ (and there are
probably other projects out there)

If you can, you should use deferred binding (with a property-provider)
instead of checking Window.Navigator in your code (this would mean you
download both the mobile and desktop versions, but just don't run
the desktop parts)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Detecting mobile phones browser

2010-08-15 Thread Thomas Broyer


On 15 août, 16:36, Thomas Broyer t.bro...@gmail.com wrote:
 On 14 août, 14:32, Ice13ill andrei.fifi...@gmail.com wrote:

  I wont to know if by checking the user.agent property in the gwt.xml
  file I can detect if the client is using a browser on a mobile phone
  (like HTC wiht Android, or IPhone etc)

  And also, are there nasty restrictions on the JS (thus GWT classes)
  on those browsers ?(at least for those very widely used)

 Seehttp://code.google.com/p/gwt-mobile-webkit/(and there are
 probably other projects out there)

See also this example:
http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties#Example_2:_Avoiding_permutation_explosion

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Detecting mobile phones browser

2010-08-15 Thread Andrei Cosmin Fifiiţă
Yep, that is exactly what i did :) (property-provider and replace-with tags)

On 15 August 2010 17:51, Thomas Broyer t.bro...@gmail.com wrote:



 On 15 août, 16:36, Thomas Broyer t.bro...@gmail.com wrote:
  On 14 août, 14:32, Ice13ill andrei.fifi...@gmail.com wrote:
 
   I wont to know if by checking the user.agent property in the gwt.xml
   file I can detect if the client is using a browser on a mobile phone
   (like HTC wiht Android, or IPhone etc)
 
   And also, are there nasty restrictions on the JS (thus GWT classes)
   on those browsers ?(at least for those very widely used)
 
  Seehttp://code.google.com/p/gwt-mobile-webkit/(andhttp://code.google.com/p/gwt-mobile-webkit/%28andthere
   are
  probably other projects out there)

 See also this example:

 http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties#Example_2:_Avoiding_permutation_explosion

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.