WindowManager manager = getWindowManager();Point point = new Point();manager.getDefaultDisplay().getSize(point);manager.getDefaultDisplay().getSize(point);Log.i(TAG, "height: "+point.y);Log.i(TAG, "width: "+point.x);