应用程序在Android Market不支持X大粒不支持、应用程序、Android、Market

由网友(善于伪装)分享简介:我创造只为平板电脑(7寸10.1)的应用程序。我把下面的code在我的Andr​​oid清单文件:I am creating an application only for tablets (7 and 10.1 inch). I put below the code in my android manifest f...

我创造只为平板电脑(7寸10.1)的应用程序。我把下面的code在我的Andr​​oid清单文件:

I am creating an application only for tablets (7 and 10.1 inch). I put below the code in my android manifest file:

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

<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>

我把我的应用程序在Android Market。但它没有显示在我的三星Galaxy Tab 10.1。在支持的设备只有7英寸平板电脑。我希望我的两个7英寸和10.1英寸的应用程序。请,有人帮我解决这个问题。

I put my app in Android market. But it's not showing up in my Samsung Galaxy tab 10.1. In that support device is only 7 inch Tablets. I want my app for both 7 inch and 10.1 inch. Please, some one help me to solve this problem.

推荐答案

我觉得你应该添加API级别9。

I think you should add API Level 9.

<manifest ... >
...
<compatible-screens>
    <!-- all small size screens -->
    <screen android:screenSize="small" android:screenDensity="ldpi" />
    <screen android:screenSize="small" android:screenDensity="mdpi" />
    <screen android:screenSize="small" android:screenDensity="hdpi" />
    <screen android:screenSize="small" android:screenDensity="xhdpi" />
    <!-- all normal size screens -->
    <screen android:screenSize="normal" android:screenDensity="ldpi" />
    <screen android:screenSize="normal" android:screenDensity="mdpi" />
    <screen android:screenSize="normal" android:screenDensity="hdpi" />
    <screen android:screenSize="normal" android:screenDensity="xhdpi" />
</compatible-screens>
<application ... >
    ...
<application>

 </manifest>

请注意:安卓2.3(API等级9)推出了一个新的属性的元素:xlargeScreens,如下图所示。它的工作原理同其他屏幕上方的属性,但是,如果没有你的的minSdkVersion或targetSdkVersion设置为9,当安装在设备上运行应用程序的默认值是假的Andr​​oid 2.3。

Note: Android 2.3 (API Level 9) introduced a new attribute for the element: xlargeScreens, shown below. It works the same as the other screen attributes above, but, if neither your minSdkVersion or targetSdkVersion are set to "9", the default value is "false" when your application is installed on a device running Android 2.3.

机器人:xlargeScreens - > 不管是不是应用程序UI设计用于在XLARGE屏幕 - 真,如果它是,和假如果不是。 假,真

http://android.ankara-gtug.org/guide/做法/ screens_support.html#ATTRS

阅读全文

相关推荐

最新文章