How to get the screen density programmatically in android?
I mean: How to find the screen dpi of the current device?
I am using following code to access DPI from modules (no need for having access to a context object):
(Resources.getSystem().getDisplayMetrics().xdpi Resources.getSystem().getDisplayMetrics().ydpi)/2