Android examples for User Interface:Screen Size
get Display Screen Size
//package com.java2s; import android.app.Activity; import android.graphics.Point; import android.view.Display; public class Main { public static Point getDisplayScreenSize(Activity activity) { Display display = activity.getWindowManager().getDefaultDisplay(); Point size = new Point(); display.getSize(size);// w w w.j a va2s .c om return size; } }