java - How to get Android Device Density Unit -


i want click on point(x,y) on android device. figured out need density unit of device equilibrate point according different devices.

i wonder how can ths density unit use in code.

use density device

 getresources().getdisplaymetrics().density; 

Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -