[android-developers] Re: How to know the request is from Android 4.0 phone or Android 4.0 Tablet?
I believe you can check the screen size, i.e. if it's greater than 450x600 or something than it's a tablet. I'm not exactly sure where you find that but it must be passed by the browser because I've seen analytics from google that show the screen size of the device hitting the site.
On Wednesday, May 9, 2012 9:25:01 PM UTC-7, Kevin Chang wrote:
--I woudl like to develop a Web Application. It has different UI design for Phone and Tablet because they have different screen size. I always Take user agent of browser to know what device access my application. Then I can know to give appropriate size of UI.
User Angent of Android 4.0 Table and Android 4.0 Phone are similiar. There is no way to distinguish them like (iPhone and iPad did).
Can any one shed a light to know that the access is from Tablet or Phone of Android 4.0?
Thanks,
-Kevin
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home