Android Manifest - 设备兼容性列表,缺少Galaxy S2

时间:2011-11-04 13:19:01

标签: android manifest compatibility device galaxy

我一直在准备发布我的应用程序,但我一直遇到设备兼容性问题,我只收到大约215个设备或更少兼容。对我来说最值得注意的是三星Galaxy S2,现在我已经在这款设备上进行了彻底的测试,它的工作原理非常完美。我想知道这里是否有人可以在我的清单中看到任何可能遗漏/导致冲突的事情。

注意:在此项目中使用Unity android和OpenFeint。

这些是市场仅显示的功能:

  

屏幕布局:SMALL NORMAL LARGE XLARGE所需的设备功能   android.hardware.touchscreen

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" package="com.openfeint.api" android:versionName="1.4.1" android:versionCode="6">
  <supports-screens 
    android:smallScreens="true"
    android:normalScreens="true"
    android:largeScreens="true"
    android:xlargeScreens="true" 
    android:anyDensity="true"
    android:resizeable="true" />
  <application android:icon="@drawable/app_icon" android:label="@string/app_name" android:debuggable="false">
    <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation" android:screenOrientation="landscape">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
    </activity>
    <activity android:name="com.unity3d.player.VideoPlayer" android:label="@string/app_name" android:configChanges="keyboardHidden|orientation">
    </activity>
    <activity android:name="com.openfeint.internal.ui.IntroFlow"
                  android:label="IntroFlow"
                  android:configChanges="orientation|keyboardHidden"
                  android:theme="@android:style/Theme.NoTitleBar"
                  android:screenOrientation="landscape"/>

        <activity android:name="com.openfeint.api.ui.Dashboard"
                  android:label="Dashboard"
                  android:configChanges="orientation|keyboardHidden"
                  android:theme="@android:style/Theme.NoTitleBar"
                  android:screenOrientation="landscape"/>

        <activity android:name="com.openfeint.internal.ui.Settings"
                  android:label="Settings"
                  android:configChanges="orientation|keyboardHidden"
                  android:theme="@android:style/Theme.NoTitleBar"
                  android:screenOrientation="landscape"/>

        <activity android:name="com.openfeint.internal.ui.NativeBrowser"
          android:label="NativeBrowser"
          android:configChanges="orientation|keyboardHidden"
          android:theme="@android:style/Theme.NoTitleBar"
                  android:screenOrientation="landscape"/>
  </application>
  <uses-feature android:glEsVersion="0x00010001" />
  <uses-feature android:name="android.hardware.screen.landscape" android:required="false"/>
  <uses-feature android:name="android.hardware.touchscreen.multitouch" android:required="false"/>
  <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="9" />
  <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    <uses-permission android:name="android.permission.GET_TASKS"></uses-permission>
    <uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
</manifest>

2 个答案:

答案 0 :(得分:1)

之前的答案不正确 - 您无法在uses-permission中使用required =“false”,它必须处于uses-feauture中。像这样的电话状态:

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

有关此内容的更多信息,请访问:http://developer.android.com/guide/topics/manifest/uses-feature-element.html#permissions

答案 1 :(得分:0)

READ_PHONE_STATE会在某些平板电脑上进行Android电子市场过滤,请尝试

<uses-permission android:name="android.permission.READ_PHONE_STATE" required="false">