开发者

Application Only for Tablets

开发者 https://www.devze.com 2023-04-12 18:40 出处:网络
I am create application only for tablets. Now i upload that application on market. My application suppo开发者_如何学JAVArt in Android 2.2 Galaxy Tab 7 and All android 3.0 version Tablets.

I am create application only for tablets. Now i upload that application on market. My application suppo开发者_如何学JAVArt in Android 2.2 Galaxy Tab 7 and All android 3.0 version Tablets. Issues is that application can not install in mobile. when i use Android 2.2 version device and search my application than it's found and install in my device.

To avoid that i add this code in my manifest file:-

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

but till that in mobile my application show. I found some other code but this not show in my manifest file

    android:requiresSmallestWidthDp="600"
    android:compatibleWidthLimitDp="integer"
    android:largestWidthLimitDp="integer"

Thanks in Advance


As I just answered here: https://stackoverflow.com/a/10540882/413127 it is possible

you need a combination of what you've outlined above in your Manifest:

 <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" />


MinimumAPILevel attribute in Manifest.xml is used to filter apps. Changes it accordingly.
If you want you app to be visible for only tablets then keep MinimumAPILevel greater than 9. If you want it be visible for phone also then keep MinimumAPILevel less than 9.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号