Java tutorial
//package com.java2s; //License from project: Apache License import android.content.res.Configuration; public class Main { private static String UNKNOWN = ""; /** * The current height of the available screen space, in dp units. * @param screen_height_dp "screenHeightDp" */ public static String getScreenHeightDpStr(int screen_height_dp) { switch (screen_height_dp) { case Configuration.SCREEN_HEIGHT_DP_UNDEFINED://0 return "SCREEN_HEIGHT_DP_UNDEFINED"; default: return UNKNOWN; } } }