Wednesday, March 28, 2018

Android screen size and dpi

Often, when working on particular device, you need to find out exact screen dimensions and dpi:


uki  08:04 ~ $ adb shell dumpsys window displays | grep dpi
    init=1440x2880 560dpi base=1440x2880 476dpi cur=1440x2880 app=1440x2737 rng=1440x1357-2737x2654