DisplayMetrics dm =
new
DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
double
x = Math.pow(dm.widthPixels/dm.xdpi,
2
);
double
y = Math.pow(dm.heightPixels/dm.ydpi,
2
);
double
screenInches = Math.sqrt(x+y);
Log.d(
"TEST"
,
"Screen inches : "
+ screenInches);
출처 : http://lsit81.tistory.com/entry/Android-Screen-Size-Inch-%EA%B5%AC%ED%95%98%EA%B8%B0