So, as far as I know, we can use next formula:  

`density = SQRT(width*width+height*height)/screen_size`.  

For example, Nexus 6 (6.0", 1\_440\*2\_560) should give **490 dpi** (approx.), but Android Studio Preview screen shows this device with **560 dpi**.  

What am I missing?