Java tutorial
//package com.java2s; import android.graphics.Point; import android.view.Display; public class Main { public static int getScreenHeight(Display display) { Point size = getDisplaySize(display); return size.y; } public static Point getDisplaySize(Display display) { Point size = new Point(); display.getSize(size); return size; } }