I read a lot of questions about SO about the best ways to determine the screen size in pixels, which ultimately depends on the resolution in order to find the actual screen size.
I know that some mobile devices have a small screen (say 4 inches), but the resolution is high. Although some r devices have a large screen (e.g. 7inch tab), the resolution is low.
Therefore, when you want to display your page to the user, you really need a screen size in centimeters or centimeters to provide the best view soothing your eyes.
So, I ask: Was it possible to find out the screen size of the device in inches, not pixels? I know that this is possible if we know the resolution !! Bec we can calculate the size of the width and height of the screen
Appreciate any idea!
source
share