I am developing a phonegap (cordova) project and I want to get the DPI of the device. Is this possible?
In Android native JAVA API there is a Class named DisplayMetrics
which provides getDisplayMetrics().xdpi
/ydpi
method to get device DPI.
Is there any method to get device DPI in Cordova or Phonegap?