Version: 2017.1
public static float dpi ;

Descripción

El DPI actual de la pantalla / dispositivo (lectura solamente).

This is the actual DPI of the screen attached or physical device running the application. May return 0 if unable to determine the current DPI.
Note that on Android this returns densityDpi which is a logical bucket containing a range of dpi values. If you need a more precise dpi value, see this forum thread.