Get screen density

suggest change

To get the screens density, we also can make use of the Windowmanagers DisplayMetrics. This is a quick example:

// Get density in dpi
DisplayMetrics metrics = new DisplayMetrics();
int densityInDpi =  metrics.densityDpi;

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents