Android: developing for froyo and up, want to disable tablet support
-
03-12-2019 - |
Question
There were other posts on this, but I'm still not understanding what I need to do to not allow tablets to download my app. I'll need more time to optimize for tablets, but for now I want to leave it out.
I found this: http://developer.android.com/guide/topics/manifest/supports-screens-element.html But, again I'm confused since there is a warning that disabling xlarge will sometimes turn on compatibility mode?
Thanks.
Solution
Use the <compatible-screens>
element to indicate what combinations of screen size and density you support. You will not appear in the Android Market for any other combination.
Here is the example from the documentation, showing a <compatible-screens>
element set up for -small
and -normal
screen support, but not -large
and -xlarge
:
<compatible-screens>
<!-- all small size screens -->
<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi" />
<!-- all normal size screens -->
<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
</compatible-screens>