Skip to content

Instantly share code, notes, and snippets.

@sergibc
Last active February 10, 2016 17:32
Show Gist options
  • Save sergibc/0843d3787b98c48d1827 to your computer and use it in GitHub Desktop.
Save sergibc/0843d3787b98c48d1827 to your computer and use it in GitHub Desktop.
compatible-screens tag to release an app only for smartphones and for tablet. Remember be care with the permissions as well.
<compatible-screens>
<!-- small size screens -->
<screen
android:screenDensity="mdpi"
android:screenSize="small"/>
<screen
android:screenDensity="hdpi"
android:screenSize="small"/>
<screen
android:screenDensity="xhdpi"
android:screenSize="small"/>
<screen
android:screenDensity="280"
android:screenSize="small"/>
<screen
android:screenDensity="360"
android:screenSize="small"/>
<screen
android:screenDensity="420"
android:screenSize="small"/>
<screen
android:screenDensity="480"
android:screenSize="small"/>
<screen
android:screenDensity="560"
android:screenSize="small"/>
<screen
android:screenDensity="640"
android:screenSize="small"/>
<!-- normal size screens -->
<screen
android:screenDensity="mdpi"
android:screenSize="normal"/>
<screen
android:screenDensity="hdpi"
android:screenSize="normal"/>
<screen
android:screenDensity="xhdpi"
android:screenSize="normal"/>
<screen
android:screenDensity="280"
android:screenSize="normal"/>
<screen
android:screenDensity="360"
android:screenSize="normal"/>
<screen
android:screenDensity="420"
android:screenSize="normal"/>
<screen
android:screenDensity="480"
android:screenSize="normal"/>
<screen
android:screenDensity="560"
android:screenSize="normal"/>
<screen
android:screenDensity="640"
android:screenSize="normal"/>
</compatible-screens>
<compatible-screens>
<!-- xlarge size screens -->
<screen
android:screenDensity="mdpi"
android:screenSize="xlarge"/>
<screen
android:screenDensity="hdpi"
android:screenSize="xlarge"/>
<screen
android:screenDensity="xhdpi"
android:screenSize="xlarge"/>
<screen
android:screenDensity="280"
android:screenSize="xlarge"/>
<screen
android:screenDensity="360"
android:screenSize="xlarge"/>
<screen
android:screenDensity="420"
android:screenSize="xlarge"/>
<screen
android:screenDensity="480"
android:screenSize="xlarge"/>
<screen
android:screenDensity="560"
android:screenSize="xlarge"/>
<screen
android:screenDensity="640"
android:screenSize="xlarge"/>
<!-- Special case for Nexus 7 -->
<screen
android:screenDensity="213"
android:screenSize="large"/>
<!-- large size screens -->
<screen
android:screenDensity="mdpi"
android:screenSize="large"/>
<screen
android:screenDensity="hdpi"
android:screenSize="large"/>
<screen
android:screenDensity="xhdpi"
android:screenSize="large"/>
<screen
android:screenDensity="280"
android:screenSize="large"/>
<screen
android:screenDensity="360"
android:screenSize="large"/>
<screen
android:screenDensity="420"
android:screenSize="large"/>
<screen
android:screenDensity="480"
android:screenSize="large"/>
<screen
android:screenDensity="560"
android:screenSize="large"/>
<screen
android:screenDensity="640"
android:screenSize="large"/>
</compatible-screens>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment