I am trying to access some DisplayMetrics data and everything is returning zero. This is how I am initializing display metrics object:
DisplayMetrics display = new DisplayMetrics();
and when I call display.heightPixels it’s just zero. Do I need a permission or something to access DisplayMetrics?
This is not how to use
DisplayMetrics.This is how: