2012-12-20 139 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,當時首次引入了對多屏 的支持。你不應該使用它。

相關問題