Calculate the DPI of a device based on its resolution and screen size. A list of common devices is built-in and available.
Source code available at GitHub: https://github.com/duncanleo/dpi-android
计算是根据它的分辨率和屏幕尺寸的装置的DPI。普通设备列表是内置的和可用的。
在GitHub上可用的源代码:https://github.com/duncanleo/dpi-android