Java Android兼容屏幕和密度

Java Android兼容屏幕和密度,java,android,screen,Java,Android,Screen,我刚刚完成了我的游戏并发布了它,但它在任何小于平板电脑大小的屏幕上都无法工作。它说这是由于我的清单设置 <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name="unjustentertainment.com.GameActivity" android:label="My.Game"

我刚刚完成了我的游戏并发布了它,但它在任何小于平板电脑大小的屏幕上都无法工作。它说这是由于我的清单设置

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name="unjustentertainment.com.GameActivity"
              android:label="My.Game"
              android:screenOrientation="portrait"
              android:configChanges="keyboard|keyboardHidden|orientation"
              >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
<supports-screens
      android:largeScreens="true"
      android:normalScreens="true"
      android:smallScreens="true"
      android:anyDensity="true" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> 
 <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="9"/>
 </manifest>


但我不明白为什么我主要针对htc evo?

如果您希望尽可能多的设备使用此功能,请删除“支持屏幕”,并且您也不需要targetSDK。如果你不包括他们,它将假定你支持他们

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name="unjustentertainment.com.GameActivity"
              android:label="My.Game"
              android:screenOrientation="portrait"
              android:configChanges="keyboard|keyboardHidden|orientation"
              >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
<supports-screens
      android:largeScreens="true"
      android:normalScreens="true"
      android:smallScreens="true"
      android:anyDensity="true" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> 
 <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="9"/>
 </manifest>

希望能修复它

我认为该元素被忽略,因为您将minSdkVersion设置为3;发件人:

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name="unjustentertainment.com.GameActivity"
              android:label="My.Game"
              android:screenOrientation="portrait"
              android:configChanges="keyboard|keyboardHidden|orientation"
              >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
<supports-screens
      android:largeScreens="true"
      android:normalScreens="true"
      android:smallScreens="true"
      android:anyDensity="true" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> 
 <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="9"/>
 </manifest>
适用于设置android:Minsdk版本或 android:targetSdkVersion为3或更低版本 元素本身未定义,并且没有可用的属性。在这个 在这种情况下,市场假设应用程序是为正常大小而设计的 屏幕显示应用程序,并将其显示到具有正常或 大屏幕

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name="unjustentertainment.com.GameActivity"
              android:label="My.Game"
              android:screenOrientation="portrait"
              android:configChanges="keyboard|keyboardHidden|orientation"
              >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
<supports-screens
      android:largeScreens="true"
      android:normalScreens="true"
      android:smallScreens="true"
      android:anyDensity="true" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> 
 <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="9"/>
 </manifest>

尝试将minSdkVersion更改为4,我相信这会解决问题。

我得到了它。如果你想表示支持,请在这里下载游戏的lite版本。谢谢,很高兴它能工作!你有游戏的URL吗?另外,如果我回答了你的问题,请点击左边的大复选框。。。我在这里工作这是我的游戏谢谢
<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name="unjustentertainment.com.GameActivity"
              android:label="My.Game"
              android:screenOrientation="portrait"
              android:configChanges="keyboard|keyboardHidden|orientation"
              >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
<supports-screens
      android:largeScreens="true"
      android:normalScreens="true"
      android:smallScreens="true"
      android:anyDensity="true" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> 
 <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="9"/>
 </manifest>