I have designed my app for Android Tablet. But it should be installed only on Android Tablet. For this I have tried the following.
But all the above scenarios are failed. The android app installed both Google Nexus S 4.1.0 mobile and Acer Iconia A500 tablet
. Is there any other way to restrict the android app only for android tablet alone.?
According to documentation these lines would work for you!
<manifest ... >
<supports-screens android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="600" />
...
<application ... >
...
</application>
</manifest>
The filtering is applied on the market application! That means that you cannot really test it via installing the app from adb or just running it from the apk! APKs that may be filtered by Google Play still can be compatible and can installed on devices from "unknown sources".
You can see the how the filtering is applied when you upload your APK at Market see All Applications > select your application > APK > Supported devices | Excluded devices
How do you install the APK? Via ADB/Sdcard or GooglePlayStore?
You should be noticed that all the filter is for the market. It cannot prevent user to install the APK manually.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With