How to get the screen density programmatically in android?
I mean: How to find the screen dpi of the current device?
Try this:
DisplayMetrics dm = context.getResources().getDisplayMetrics(); int densityDpi = dm.densityDpi;