I've checked android's website about supporting multiple screens but I'm a little confused by dpi. I've a Samsung s7 (not the edge) and I test my app on it. I'm not sure if it's in the mdpi or hdpi group. Thank you
Supporting different screens and Samsung s7 dpi
1.7k views Asked by DroidGalaxy At
2
you can use
float density = getResources().getDisplayMetrics().density;
in your app. and can check if the current device is mdpi, hdpi, xhdpi etc. Here is link to official docs.