I am trying to build an android app which can be downloaded only by phone not tablet.I have put this into the manifest:
<supports-screens
android:resizeable="false"
android:anyDensity="false"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="false" />
<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" />
<uses-feature android:name="android.hardware.telephony"/>
<uses-sdk android:minSdkVersion="14"
android:maxSdkVersion="22"/>
Question:
1.When I am running my app in the tablet emulator,it is not giving any error. What am I doing wrong ? Does it only work when I submit it on playstore? If that's so then how can I test my app before making it live ?
2.As I have written here android:screenDensity="xhdpi"
,how to support xxhdpi
? As an example nexus5 is xxhdpi
.
Note :
By tablet I mean that the resolution isn't higher than 1440x2560 and the screen size isn't more than 6 inch and offcourse it doesn't support calling facility.