According to this topic the configuration of manitest, as mentioned in the @Ernandes reply, prevents users from finding their app on market place, but if they have the file apk
in hands they will not be prevented from installing the same.
Additional protection would consist of checking the screen resolution on application startup and, if not appropriate, issuing a "unsupported screen size" warning and terminating the application.
Here is an example of code to retrieve programmatically extracted values of this other topic:
Display display = getWindowManager().getDefaultDisplay();
DisplayMetrics outMetrics = new DisplayMetrics ();
display.getMetrics(outMetrics);
float density = getResources().getDisplayMetrics().density;
float dpHeight = outMetrics.heightPixels / density;
float dpWidth = outMetrics.widthPixels / density;
You want to avoid or ban the use in cell phones?
– utluiz
@utluiz I want to ban, because I do not know what will be the behavior of the app on smaller screens.
– iTSangar