On Fri, Jan 31, 2014 at 8:25 PM, pskr <[email protected]> wrote:

> Is there a better way? Works for few other devices I have. Is SGH-I727
> reporting incorrect values?
>

Yes, I'm afraid.  I have tried to solve the same problem and failed to find
a solution.  The issue has been discussed here already (possibly several
times) so feel free to check out the archives.  To give you a summary, the
xdpi and ydpi fields are not used by the Android framework so even if a
device manufacturer fails to fill in correct values, nothing breaks
immediately which often allows the bug to slip under radar.

Some devices return correct values, some devices return slightly incorrect
ones (even Google's own Nexus 7 does) and yet others return grossly
incorrect xdpi and ydpi (I remember one of the small-screen low-end Samsung
Galaxy phones returned 160 when in fact the actual value was slightly over
120 dpi, and an LG Optimus model gave 160 instead of 180).

You'll notice that the incorrect value is often 160 (or 240) which I
believe might be due to these values being the representatives for mdpi and
hdpi categories.  I imagine they might be used as defaults that just stay
there if the manufacturer doesn't take care to replace them with actual
values for the particular screen.  That's just my speculation though.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to