vendredi 29 mai 2015

Cordova - (Phonegap) get Device DPI and Density Pixels

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 ?

Aucun commentaire:

Enregistrer un commentaire