Here you can find the source of getRawDisplayHeight(Context context)
public static synchronized int getRawDisplayHeight(Context context)
//package com.java2s; import android.content.Context; import android.view.Display; import android.view.WindowManager; public class Main { public static synchronized int getRawDisplayHeight(Context context) { Display display = ((WindowManager) context .getSystemService(Context.WINDOW_SERVICE)) .getDefaultDisplay();/*from www .j av a 2 s .com*/ return display.getHeight(); } }