code: public static int getScreenHeight(Context context) {
          DisplayMetrics metrics = context.getResources().getDisplayMetrics();
          return metrics.heightPixels;
      }
docs: Returns the screen height in pixels
  
  @param context is the context to get the resources
  @return the screen height in pixels