Re: [android-developers] How to know the request is from Android 4.0 phone or Android 4.0 Tablet?

2012-05-14 Thread Fabien R
On 10/05/12 06:25, 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 

   
This is not specific to ICS but it may help:
http://developer.android.com/guide/practices/screens_support.html

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] How to know the request is from Android 4.0 phone or Android 4.0 Tablet?

2012-05-10 Thread Kevin Chang
Hi,
 
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 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to know the request is from Android 4.0 phone or Android 4.0 Tablet?

2012-05-10 Thread Kevin Chang
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 is to know 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] How to know the request is from Android 4.0 phone or Android 4.0 Tablet?

2012-05-10 Thread Kevin Chang
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] How to know the request is from Android 4.0 phone or Android 4.0 Tablet?

2012-05-10 Thread Kostya Vasilyev
What is a tablet vs. phone? Is the Samsung Galaxy Note a phone or a 
tablet? What about a 5, 800x480 tablet?


Perhaps you could use css media queries to implement elastic design.

-- K

10.05.2012 8:35, Kevin Chang написал:

Hi,
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 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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
Kostya Vasilyev

--
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en