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