【问题标题】:Why doesn't my Android Manifest support Samsung Galaxy Note 2为什么我的 Android 清单不支持三星 Galaxy Note 2
【发布时间】:2013-01-30 08:55:38
【问题描述】:

我有以下清单来构建我的应用程序,发现 Google Play 不希望我的应用程序在三星 Galaxy Note 2 上发布,但希望在 Galaxy Note 1 上发布。

我需要进行哪些更改才能让它在新的 Galaxy Note 上运行?在我必须将 APK 上传到 Google Play 商店之前,是否有一个测试应用程序可以告诉我支持的设备?

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="${YYAndroidPackageName}" android:versionCode="${YYAndroidVersionCode}" android:versionName="${YYAndroidMajorVersion}.${YYAndroidMinorVersion}.${YYAndroidBuildVersion}" android:installLocation="auto">

  <!-- AdMob SDK permissions -->  
  <!-- uses here -->
  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
  ${YYAndroidManifestPermission}

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

  <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="16"/>

  <!-- application -->
  <application android:name="${YYAndroidPackageName}.RunnerApplication" android:label="@string/app_name" android:icon="@drawable/icon">
    <activity android:name="${YYAndroidPackageName}.RunnerActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:label="@string/app_name" android:launchMode="singleTask" android:screenOrientation="${YYAndroidOrientation}" android:configChanges="orientation|keyboardHidden|screenSize">
      <intent-filter>
        <action android:name="android.intent.action.MAIN"/>
        <category android:name="android.intent.category.LAUNCHER"/>
      </intent-filter>
    </activity>
    <activity android:name="${YYAndroidPackageName}.RunnerPreferenceActivity" android:label="@string/menu_settings">
    </activity>

    <!-- services -->
    <service android:name="RunnerBillingService" />
    ${YYAndroidManifestServices}

    <!-- activities here -->
    ${YYAndroidManifestActivities}

    <!-- receivers here -->    
      ${YYAndroidManifestReceivers}

    <!-- This is XPeria Play specific, we have decided to make this standard though for all applications, just in case -->
    <meta-data android:name="xperiaplayoptimized_content" android:resource="@string/xperiaplayoptimized_content" />
    <meta-data android:name="game_display_name" android:resource="@string/app_name" />
    <meta-data android:name="game_icon" android:resource="@drawable/icon" />

    <!-- meta-data here -->
    ${YYAndroidManifestMetadata}

  </application>
</manifest>

Manifest 来自 GameMaker Studio。

【问题讨论】:

    标签: android android-manifest


    【解决方案1】:

    galaxy note 2 屏幕正常,不是 xlarge 或 large

    【讨论】:

    • 没有。这是一个大屏幕。 gsmarena.com/samsung_galaxy_note_ii_n7100-4854.php
    • @eightx2 它应该在清单中定义为普通屏幕。我知道它的规格
    • 好吧,如果我指定为普通屏,很多智能手机也会支持?我真的很想只有大屏幕。有没有地方可以让我看到这些规范接受哪些清单数据?
    • @Marnix Im really not sure how to support note 2 and not support other normal screens (and not sure if its 甚至可能——感谢三星)。也许你最好为它开始新的问题
    【解决方案2】:

    我会打赌:

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

    尝试更新...(可能删除android:requiresSmallestWidthDp 或允许android:normalScreens) 我知道Note 1 和Note 2 之间最大的区别是屏幕(尺寸/分辨率/密度)。这就是我建议的原因。

    否则,它可能在生成的清单中(所有那些 ${...} 都被其他东西替换,那里可能有问题,但你必须先找到生成的清单)。

    【讨论】:

    • 您能否详细说明为什么应该删除android:requiresSmallestWidthDp?屏幕为 720x1280。
    • 只是下注,试试看。再看看生成的清单,可能是别的东西。
    • 是否有应用程序来测试我的清单,或者我每次都必须将我的应用程序上传到应用商店?
    • 您可以设置一个模拟器:developer.samsung.com/forum/thread/… 如果清单不兼容,该应用将无法安装。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-04-30
    • 1970-01-01
    • 2017-08-16
    • 1970-01-01
    • 1970-01-01
    • 2017-11-18
    • 1970-01-01
    相关资源
    最近更新 更多