As this question is interesting and this issue of correctly identifying Tablet’s brought me problems too, I managed to solve. I leave my solution to the problem:
Like I said, I was using both the suffix large
how much the suffix sw-600dp
for’s layout and features for Tablet’s, the large
as compatibility since the sw-600dp
is not recognized in versions prior to Android 3.0 (Honeycomb).
But some Vices like the HTC One and the Xperia Z1 and others that have screen 1920x1080 with density of approximately 320 dpi ended up using the resources and layout’s of the suffix large
, breaking my logic and my UI.
My solution was to abolish the use of the suffix once and for all large
, given that looking at the Dashboard platform, no relevant data on the use of Honeycomb (3.0) and on my Dashboard Google Play appears 0.46% of users totals (not just my app), so I decided to ignore to not cause detriment to other users of more modern devices.
Summarizing: Put the Tablet features with suffix sw-600dp
, be it landscape
or portrait
and not in large
compatibility.
Nowadays there are smartphones that are bigger than some tablets, old or not. That is, the difference between concepts of tablets and smartphones is getting very blurry, so you should choose another parameter to be based, such as screen size (yes, in inches)
– Math
How do I get to that size?
– Jorge B.
I have no idea, I’m just telling you a possibility of how to solve your problem ;)
– Math
Jorge, I usually use the "suffix"
large
(p.and:values-large
) in my Sources. But I no longer have the compleeeta certainty if it will not give false positives (Type a Galaxy note 3 of life or LG G3). Now I feel like testing...– Wakim
Test and tell me :D I’ve never put much stock in these suffixes.
– Jorge B.
I tested now, in GN3 the
large
didn’t take, which is acceptable. Using my Nexus 7, it works. In Android Guideline, he talks about sw600-xx for tablets of 7", sw720-xx for tablets of 10" and also comments about xlarge. Try taking a look at these 3 to see if it answers.– Wakim
My problem is that my app has to work everywhere, but on smartphones it only works on Portrait.
– Jorge B.
@Wakim I’m experimenting with Sony Xperia z and is taking over as a tablet :(
– Jorge B.
@Jorgeb. I tested with this Sony Xperia Z (same screen size and same dpi as GN3) and it worked. There is also Sony Xperia Tablet Z. Remembering that I use the
layout-large
for example.– Wakim
@Wakim Worked out like that? Assumed large? Or not?
– Jorge B.
Assumed as not in Xperia.
– Wakim
And in the m705f? That to me assumes me as not large :(
– Jorge B.