we can use DisplayMetrics.densityDpi to obtain a approximate dpi value of the device,but i eager to know how to obtain the exact dpi value?
DisplayMetrics.densityDpi
I think you can accesss this through the class DisplayMetrics and the field densityDpi.
densityDpi