EF's Blog

Posts Tagged ‘function

public static int getMetricDPI(Activity myActivityReference)
{

//created by Erwin Fransiscus
//get display DPI
DisplayMetrics metrics = new DisplayMetrics();
myActivityReference.getWindowManager().getDefaultDisplay().getMetrics(metrics);
return metrics.densityDpi;
}

 

it returns integer


EF’s Blog

I'm just ordinary people who lived in an extra-ordinary world.

EF's Blog Stats

  • 151,005 hits
May 2020
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Archives