简体   繁体   English

未从Android Market的平板电脑中安装APK文件?

[英]Apk file not installed in Tablets from android market?

I developed an application and uploaded the apk file to android market. 我开发了一个应用程序,并将apk文件上传到android market。 It is installed and working properly in all handset devices but it is not installing in tablets . 它已在所有手持设备中安装并正常工作,但未在平板电脑中安装 But, if i am installing the apk directly into the tablet its working. 但是,如果我将apk直接安装到平板电脑中,则其工作正常。

i used the following in my manifest file. 我在清单文件中使用了以下内容。

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

It seems your application fails to stretch for tablet screen size. 看来您的应用程序无法扩展平板电脑的屏幕尺寸。

Please pay attention to following: 请注意以下几点:

An application "supports" a given screen size if it resizes properly to fill the entire screen. 如果应用程序正确调整大小以填满整个屏幕,则它“支持”给定的屏幕大小。 Normal resizing applied by the system works well for most applications and you don't have to do any extra work to make your application work on screens larger than a handset device. 系统应用的常规大小调整对大多数应用程序都适用,并且您无需做任何额外的工作即可使您的应用程序在比手持设备更大的屏幕上运行。 However, it's often important that you optimize your application's UI for different screen sizes by providing alternative layout resources. 但是,通过提供替代布局资源来优化应用程序的UI以适合不同的屏幕尺寸通常很重要。 For instance, you might want to modify the layout of an activity when it is on a tablet compared to when running on a handset device. 例如,与在手持设备上运行时相比,您可能想要修改在平板电脑上的活动的布局。

However, if your application does not work well when resized to fit different screen sizes, you can use the attributes of the element to control whether your application should be distributed to smaller screens or have its UI scaled up ("zoomed") to fit larger screens using the system's screen compatibility mode. 但是, 如果在调整大小以适合不同的屏幕尺寸时您的应用程序不能很好地运行,则可以使用元素的属性来控制是将应用程序分配到较小的屏幕还是将其UI放大(“缩放”)以适合较大的屏幕屏幕使用系统的屏幕兼容模式。 When you have not designed for larger screen sizes and the normal resizing does not achieve the appropriate results, screen compatibility mode will scale your UI by emulating a normal size screen and medium density, then zooming in so that it fills the entire screen. 如果您没有为更大的屏幕尺寸而设计,并且正常尺寸调整无法达到适当的结果,则屏幕兼容模式将通过模拟正常尺寸的屏幕和中等密度来缩放UI,然后进行放大以使其覆盖整个屏幕。

Remove 去掉

<supports-screens>

and try using: 并尝试使用:

<compatible-screens>
        <screen
            android:screenDensity="mdpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="hdpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="hdpi"
            android:screenSize="large" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="large" />
        <screen
            android:screenDensity="213"
            android:screenSize="large" />
    </compatible-screens>

Add below code line into your android manifest file 将以下代码行添加到您的android清单文件中

<uses-feature android:name="android.hardware.touchscreen"  android:required="false" />

And see below link for more information. 并查看下面的链接以获取更多信息。

App not compatible with tablet 应用程式与平板电脑不相容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM