我为我的问题尝试了所有解决方案。 这是我的清单代码
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.turk.bakistik"
android:versionCode="1"
android:versionName="1.0" >
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<compatible-screens>
<!-- all normal size screens -->
<screen
android:screenDensity="ldpi"
android:screenSize="normal" />
<screen
android:screenDensity="mdpi"
android:screenSize="normal" />
<screen
android:screenDensity="hdpi"
android:screenSize="normal" />
<screen
android:screenDensity="xhdpi"
android:screenSize="normal" />
<!-- large screens -->
<screen
android:screenDensity="hdpi"
android:screenSize="large" />
<screen
android:screenDensity="xhdpi"
android:screenSize="large" />
<!-- xlarge screens -->
<screen
android:screenDensity="hdpi"
android:screenSize="large" />
<screen
android:screenDensity="xhdpi"
android:screenSize="xlarge" />
</compatible-screens>
<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-feature android:name="android.hardware.screen.portrait" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.turk.bakistik.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.turk.bakistik.anaekran"
android:screenOrientation="portrait"
/>
<activity
android:name="com.turk.bakistik.Kayitol"
android:label="@string/title_activity_kayitol"
android:windowSoftInputMode="adjustResize"
android:screenOrientation="portrait" >
</activity>
</application>
</manifest>
我上传应用程序到谷歌播放然后开始尝试不同的Android手机。 有些设备在搜索结果中找到了应用,有些设备无法找到。 Lg G2无法找到应用程序。我发送申请链接然后谷歌播放说不兼容。
答案 0 :(得分:0)
您正在添加兼容屏幕的(optionnal)列表。
实际上,LG G2具有以下属性:1920 x 1080p所以432 ppp这是一个真正的定义。
在官方文档(link to official doc)中,您可以阅读:
注意:此属性当前不接受xxhdpi作为有效值,但您可以指定480作为值,这是xhdpi屏幕的近似阈值。
所以你可以为LG G2添加这样的东西(如果需要的话调整它):
<screen
android:screenDensity="480"
android:screenSize="xlarge" />
将来,请确保您需要限制某些屏幕尺寸。您在此处对应用程序进行了一些限制:请务必不要忘记一个屏幕尺寸。
来源&amp;链接强>
答案 1 :(得分:0)
看起来您正在尝试支持所有屏幕尺寸?
如果是这种情况,只需删除兼容的屏幕标签和支持屏幕标签。如果你想过滤某些屏幕,你只能使用它!
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.turk.bakistik"
android:versionCode="1"
android:versionName="1.0" >
<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-feature android:name="android.hardware.screen.portrait" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.turk.bakistik.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.turk.bakistik.anaekran"
android:screenOrientation="portrait"
/>
<activity
android:name="com.turk.bakistik.Kayitol"
android:label="@string/title_activity_kayitol"
android:windowSoftInputMode="adjustResize"
android:screenOrientation="portrait" >
</activity>
</application>
</manifest>