仅适用于片剂[英] Application Only for Tablets

本文是小编为大家收集整理的关于仅适用于片剂的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

我只为平板电脑创建应用程序.现在我上传了市场上的应用. 我的应用程序支持在Android 2.2 Galaxy Tab 7和All Android 3.0版本平板电脑中. 问题是应用程序无法在移动设备中安装.当我使用Android 2.2版本设备并搜索我的应用程序而不是在我的设备中安装并安装.

要避免我在我的清单文件中添加此代码: -

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

但直到移动我的申请表. 我找到了一些其他代码,但这在我的清单文件中没有显示

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

提前感谢

推荐答案

,因为我刚刚在这里回答: https://stackoverflow.com/a/10540882/413127 它可能

您需要组合您的清单中上面的内容:

 <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" />
minument.xml中的

其他推荐答案

MinimumAPILevel属性用于过滤应用程序.相应地改变它.
如果您希望您只能看到平板电脑的应用程序,那么保持MinimumAPILevel大于9.如果您希望这款手机可见,则不会保持MinimumAPILevel小于9.

本文地址:https://www.itbaoku.cn/post/102667.html

问题描述

I am create application only for tablets. Now i upload that application on market. My application support 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.