I want to get the actual screen height of the device that runs my app. To achieve this i try the following:
DisplayMetrics metrics = new DisplayMetrics(); get
You can try this:
WindowManager wm = getWindowManager(); Display d = wm.getDefaultDisplay(); Point size = new Point(); d.getSize(size); Log.i("LOG", "W=" + size.x + " , H=" + size.y);