Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android App only for Tablets

Tags:

android

I have designed my app for Android Tablet. But it should be installed only on Android Tablet. For this I have tried the following.

  1. supports-screens
  2. android.hardware.telephony
  3. compatiblity-screens
  4. android.permission.CALL_PHONE

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.?

like image 312
Karthick Avatar asked Apr 09 '13 07:04

Karthick


2 Answers

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

  • Excluded devices: will let you manually exclude specific devises.
like image 113
madlymad Avatar answered Sep 20 '22 11:09

madlymad


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.

like image 31
Robin Avatar answered Sep 20 '22 11:09

Robin