Tag Archives: screen

6,849 views

Display screen size resolution density dimension Android

Get display, screen resolution – dimension Android phone development example source code. Display display = getWindowManager().getDefaultDisplay(); int nWidth = display.getWidth(); int nHeight = display.getHeight();   DisplayMetrics metrics = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metrics); //get density per inch for example: 120 , 160 … Continue reading

Posted in Android Examples Code | Tagged , , , , | Comments Off on Display screen size resolution density dimension Android