0

How to disable support of applications for Mobile phones and enable it for Tablet only. I want to follow multiple apk files support. I also want to know that what should be the resource folder names for Tablet. Now, I've drawable-large for storing images and layout-sw600dp and layout-sw720dp for tablet.

Are these config. correct?

Any help will be greatly appreciated.

Manish Dubey
  • 4,206
  • 8
  • 36
  • 65
Manoj
  • 2,799
  • 5
  • 30
  • 49

4 Answers4

3

please try this code:

<supports-screens
    android:largeScreens="true"
    android:normalScreens="false"
    android:requiresSmallestWidthDp="600"
    android:smallScreens="false"
    android:xlargeScreens="true" />



<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="14" />

for more read this.

Community
  • 1
  • 1
Mahesh Kavathiya
  • 573
  • 5
  • 23
1
<supports-screens android:resizeable=["true"| "false"]
              android:smallScreens=["true" | "false"]
              android:normalScreens=["true" | "false"]
              android:largeScreens=["true" | "false"]
              android:xlargeScreens=["true" | "false"]
              android:anyDensity=["true" | "false"]
              android:requiresSmallestWidthDp="integer"
              android:compatibleWidthLimitDp="integer"
              android:largestWidthLimitDp="integer"/>

You can define this Suppport-screens tag inside Meanifeast file.. at there you can define your suitable screensize

and refer http://developer.android.com/guide/topics/manifest/supports-screens-element.html

Sanket Kachhela
  • 10,861
  • 8
  • 50
  • 75
1

You can allow this in your manifestfiles with fillter of support screens This can help youi to fillter and runs only on tablets

<supports-screens
    android:largeScreens="true"
    android:normalScreens="false"
    android:requiresSmallestWidthDp="720"
    android:smallScreens="false"
    android:xlargeScreens="true" />
Usman Kurd
  • 7,212
  • 7
  • 57
  • 86
1

To filter for only tabs running ICS, add something like this in your AndroidManifest:

<supports-screens
        android:largeScreens="true"
        android:normalScreens="false"
        android:requiresSmallestWidthDp="600"
        android:smallScreens="false"
        android:xlargeScreens="true" />

 <uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="14" />

To get HoneyComb Tablets as well you simply change your minSdk

 <uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="14" />

Honeycomb and above will be supported. For specific folders to place layout files/drawables in etc check out:

http://developer.android.com/guide/practices/screens_support.html

Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84