On Wed, Dec 7, 2011 at 1:40 AM, B.Arunkumar <[email protected]> wrote: > Is there any way to check if the device you have is a tablet or > phone?
That depends. What do you think a tablet is? What do you think a phone is? Only if you can come up with a PRECISE definition for those terms can we give you advice. > I am told that checking for SDK version as is given in the second > link is not right since some tablets support Gingerbread. Correct. Moreover, the right answer in the second link is: http://stackoverflow.com/a/5832391/115145 "there is no difference. You should define what you think is the difference, and check for that. Is a galaxy tab a phone? or a tablet? and why? You should define what specific features you are looking for, and code for that." > Is the > screen size>=6 as is given in the first link the correct way to check > if the device is a phone or tablet? No, since there are things that people consider tablets that have a smaller screen size, and there are things that people consider not tablets with a larger screen size. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

