我在Play商店上传了应用程序,并且在Play商店中说它需要android是4.0及以上,我的朋友之一想要安装并且他的设备有android版本4.4.2并且它显示设备不兼容以下是我的清单文件,仍然没有得到什么问题..
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mypackagename"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="14"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET"></uses- permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS"></uses-permission>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<compatible-screens>
<!-- all small size screens -->
<screen android:screenSize="small" android:screenDensity="ldpi" />
<screen android:screenSize="small" android:screenDensity="mdpi" />
<screen android:screenSize="small" android:screenDensity="hdpi" />
<screen android:screenSize="small" android:screenDensity="xhdpi" />
<!-- all normal size screens -->
<screen android:screenSize="normal" android:screenDensity="ldpi" />
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
</compatible-screens>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/headings"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/headings"
android:screenOrientation="portrait"
>
</activity>
<activity android:name="FirstLoginPage"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
答案 0 :(得分:0)
您也可以尝试为large
添加屏幕支持:
<!-- all large size screens -->
<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" />
<强>更新强> 索尼Xperia C3有5.5屏幕尺寸,属于“大”屏幕类别,所以上面的代码将工作。同时添加对大屏幕尺寸设备的支持。
阅读本文了解更多详情:http://developer.android.com/guide/practices/screens_support.html#overview
答案 1 :(得分:0)
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true"
/>
如果你想支持所有屏幕,试试这个..这段代码也涉及平板电脑。
refer this排除平板电脑