For an internal android test application I want to make an application that either forces the device to render it using a specific resolution, or has a max dpi the device can use to display the app. I tried compiling it with different android sdks, setting the targetSdk to different versions and in my manifest I tried writing
It does not seem to be working. I know that forcing a screen resolution is bound to be bad practice in any mobile world, but this is only an app for internal use and it will never see any market. Is there a way to force a specific resolution? I know it is possible, at least to make the app run in a sort of compatibility mode. You can, using reflection, retrieve some information about the display metrics of a (or any in the app) view using View.getContext().getResources().getDisplayMetrics() to find the displayMetrics, and find the private fields widthPixels, noncompatWidthPixels, heightPixels and noncompatHeightPixels.
Thanks in advance