12-02-2019 02:05 PM
maybe you can help me, I am using some code to getRealMetrics to have the screen size in all devices, this seems to be Ok and working in all devices that i am testing, but i have a different results in a Moto G7 Plus, i am using this code
DisplayMetrics realMetrics = new DisplayMetrics();
Display screen_display = activity.getWindowManager().getDefaultDisplay();
screenSizeWidth = realMetrics.widthPixels / realMetrics.xdpi;
screenSizeHeight = realMetrics.heightPixels / realMetrics.ydpi;
screenSizeDpiHorz = realMetrics.xdpi;
screenSizeDpiVert = realMetrics.ydpi;
screenSizeDensDPI = realMetrics.densityDpi;
screenSizeDensRatio = realMetrics.density;
and i getting this result
sorry try to upload the two photos inside the zip with no luck.
Thnkas in advance for check this.
12-03-2019 08:31 AM
We've looked at your attachments - thanks. But it's not clear what you are trying to do. What should you be seeing and what are you seeing? This is clearly not a typical use case. What are you seeing on other devices that are comparable? Also, try using the "Photos" to add pictures to your post. Thanks.
12-03-2019 08:43 AM
12-04-2019 08:23 AM
Thanks for further explaining. This is interesting, though, I'm still not getting why you're checking this. Are you trying to develop some sort of games- are you a developer?
12-04-2019 09:09 AM - edited 12-04-2019 09:35 AM
this code is used inside this product https://www.clickteam.com to let developer get the screen size of the different devices so they can scale some graphics specifically to inches and screen size.
yesterday checking against other apk I see this one that also bring the same size as we do, maybe someone in the developer area can confirm this or let us know how we proceed with this specific device.
Thanks again for reviewing this.
Just to add information this application also return a wrong size
12-05-2019 08:25 AM
Thanks for more information. I'm not familiar with the application neither how they are measuring this, can't rely on the results, to be honest, but I will move the thread to the developer's community. Let see if we can get further assistance there.