-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getDpi() failure on Android #18463
Comments
It looks like someone else had a similar issue: https://stackoverflow.com/questions/17703661/how-to-find-the-ppi-of-an-android-screen My guess is that it's something in here
Maybe this is an issue with android DisplayMetrics ? |
It seems it's because we use |
@slackmoehrle , could you please add the link of this thread in the Engine forum? |
Ok, I just hope that these issues (this and #9419) will be closed together. |
From US forums:
I am trying to get the device ppi but it looks like on android it’s wrong.
I tried a nexus 4 which has 318 ppi but when I do getDpi it returns 320.
I tried Samsung galaxy s7 and it returned 640 but it’s suppose to be 577.
It seems to work fine on ios…
Also I think it’s miss leading that it’s called getDpi for actually getting the ppi?
The text was updated successfully, but these errors were encountered: