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
int width=Resources.getSystem().getDisplayMetrics().widthPixels; int height=Resources.getSystem().getDisplayMetrics().heightPixels;