2012-12-20 95 views
3

我发了一个应用程序,在AVDM中的手机和平板电脑上运行良好,将应用程序上传到Google Play,但仅在手机中才显示在平板电脑中。我拿了一些其他问题的代码,但仍然没有。我想我需要删除或添加一条线,我的Android清单是:为什么我的应用没有显示在Google Play平板电脑上?

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="com.example.pack" 
    android:installLocation="preferExternal" 
    android:versionCode="3" 
    android:versionName="3.1" 
    android:windowSoftInputMode="adjustPan" > 

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

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

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

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

    <compatible-screens> 

    <screen android:screenSize="normal" android:screenDensity="mdpi" /> 
    <screen android:screenSize="normal" android:screenDensity="hdpi" /> 
    <screen android:screenSize="normal" android:screenDensity="xhdpi" /> 

    <screen android:screenSize="large" android:screenDensity="ldpi" /> 
    <screen android:screenSize="large" android:screenDensity="mdpi" /> 
    <screen android:screenSize="large" android:screenDensity="hdpi" /> 
    <screen android:screenSize="large" android:screenDensity="xhdpi" /> 

    <screen android:screenSize="xlarge" android:screenDensity="ldpi" /> 
    <screen android:screenSize="xlarge" android:screenDensity="mdpi" /> 
    <screen android:screenSize="xlarge" android:screenDensity="hdpi" /> 
    <screen android:screenSize="xlarge" android:screenDensity="xhdpi" /> 

    <!-- Nexus 7 --> 
    <screen android:screenSize="large" android:screenDensity="213" /> 

    </compatible-screens> 

    <application 
     android:icon="@drawable/ic_launcher1" 
     android:label="@string/app_name" 
     android:theme="@style/AppTheme" > 

     <activity 
      android:name=".Main" 
      android:label="@string/main" 
      android:screenOrientation="portrait" 
      android:theme="@android:style/Theme.Black.NoTitleBar" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 
    </application> 

</manifest> 
+0

您可以在Google Play开发人员面板中看到您的应用支持哪些设备,是此列表中列出的Nexus 7? – ObAt

回答

1

几件事情,

你有一个用途,功能的电话,但要求没有电话的权限。如果您不使用电话,请删除此行。

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

android:windowSoftInputMode="adjustPan"应该是你<activity>块内。

接下来,

android:requiresSmallestWidthDp="100" 

如果您的应用程序正确地调整大小为较小的屏幕尺寸(向下 小尺寸或320dp的最小宽度),你不需要使用 这个属性。

注意:Android系统不关注此属性,因此它不会影响应用程序在运行时的行为。 取而代之的是,它用于为您的应用程序启用过滤功能,例如Google Play之类的 服务。但是,Google Play目前不支持此属性进行过滤(在Android 3.2上),所以如果您的应用程序不支持小屏幕,则应该继续使用其他大小属性 。

或者,从相同的源 -

android:resizeable="true" 

指示应用程序是否是可调整大小的不同的屏幕尺寸 。该属性默认为true。如果设置为false,则系统 将在大屏幕 屏幕上以屏幕兼容模式运行您的应用程序。

此属性已弃用。它被引入来帮助应用程序 从Android 1.5过渡到1.6,当时首次引入了对多屏 的支持。你不应该使用它。

相关问题