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

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -