I'm currently developing an app that as usual has to run on multiple devices but there is one more special than the others. An Acer DA241HL which is a 24" "Tablet" with a 1920x1080px resolution that should be wall mounted somewhere.
Is there a good way to identify this screen. Right now it reacts to the values-sw600dp folder. But what ever changes I make for this enormous tablet shouldn't affect normal tablet which would happen if I change stuff in that folder.
The following code:
DisplayMetrics metrics = getResources().getDisplayMetrics();
float density = getResources().getDisplayMetrics().density;
float dpHeight = metrics.heightPixels / density;
float dpWidth = metrics.widthPixels / density;
Log.e("screen", "******************************************************");
Log.w("screen", "d " + density + " y" + dpHeight + " x" + dpWidth + " deviceType:" + getResources().getString(R.string.device_type));
Log.e("screen", "******************************************************");
Print the following:
******************************************************
d 1.0 y1032.0 x1920.0 deviceType:5
******************************************************
But I dont see how I can make that useful. The other way I thought about is to get the model number of the device but that creates new problem if they decide to get a similar device but not the same.
Suggestions?