Screen.dpi
Xperia Z1 L39h DPI= 98079.22
Xiaomi M1 DPI= 12793.34
WHY?
Screen.dpi
Xperia Z1 L39h DPI= 98079.22
Xiaomi M1 DPI= 12793.34
WHY?
dpi info in android is usually never reliable , because the android sdk can give you crazy numbers or just 0 on some devices, and as every sdk or library has to use the android sdk including unity, will not receive proper numbers sometimes… dont depend on that, its tricky and you cant possibly test every single device in existence
It’s the hardware integrator’s fault-- device drivers should return this information accurately to Android, and thus to Unity3d. I’d suggest you default to 100dpi or 150dpi as a guess, then check Screen.dpi, and ignore it if it’s less than 25 or above 500. I would still guess/trust low numbers like 50dpi from the system, since that would be a 44 inch 1080p television (or an 88 inch 4k television), and Android can run on some wall screens.