Android examples for User Interface:Display
get Display Density
//package com.java2s; import android.content.Context; public class Main { private static Context context; public static float getDisplayDensity() { return context.getResources().getDisplayMetrics().density; }/* w w w. j ava2s . c o m*/ }