Yes. I know this is an old answer. Don't beat me up first. I checked those questions and its always turn to determine the screen size, density, etc. Or someone may say the definition of tablet have not defined yet.

Then I can give a "definition" on it. It is the System UI is different on Android 3.x, 4.0, 4.1.(4.2 have been unified).

"HandSet" have two bars:
status bar:at the top of the screen, wifi icon, time, etc
navigation bar:at the bottom of the screen, BACK, HOME, CURRENT_APPS buttons

"Tablet" have only one bar at the bottom which is combined bar.

I don't care other Android version device is handset or tablet. The reason that it want to know is about the hiding bottom bar that the "handsets" can but "tablets" cannot. See http://bin-liu.blogspot.hk/2012/03/how-to-hide-and-display-navigation-bar.html . I can calulate extra screen space on "handset"the getRawWidth(), getRawHeight() methods) .I also can do on "tablets" but I should not do as the bar never hide.

Edit: OK, I know it is not absolutely sure that handset must be "two bar style" and tablet must be "one bottom bar style". I would like to detect weather a android device is "two bars style" or "one bottom bar style" on Android 4.0 or 4.1.

0

There are 0 answers