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 -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -