WindowManager mWindowManager = (WindowManager) this .getSystemService(Context.WINDOW_SERVICE); Display mDisplay = mWindowManager.getDefaultDisplay(); DisplayMetrics mDisplayMetrics = new DisplayMetrics(); mDisplay.getRealMetrics(mDisplayMetrics); Log.d("Screen", "width = " + mDisplayMetrics.widthPixels); Log.d("Screen", "height = " + mDisplayMetrics.heightPixels);