[英]Android App is not compatible with Samsung galaxy S4 mini
我有三星galaxy s4 mini,屏幕尺寸為540 x 960像素,4.3英寸(~256 ppi像素密度)。 我的應用程序在所有設備上完美運行接受galaxy s4 mini,galaxy s4,galaxy s5。 我已經訪問過此鏈接嘗試它但它不會影響設備。 鏈接是在Android應用程序與三星galaxy S4不兼容任何解決方案存在然后請建議我。
我的AndroidManifest.xml文件代碼:`
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-feature
android:name="android.hardware.bluetooth_le"
android:required="true" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="false" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name="com.utils.Constant"
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:killAfterRestore="false"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="Video"
android:configChanges="orientation"
android:screenOrientation="portrait" >
</activity>
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/facebook_app_id" />
<activity
android:name="com.facebook.LoginActivity"
android:configChanges="orientation"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="Result"
android:configChanges="orientation"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="Login"
android:configChanges="orientation"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:name="com.beaconrangingservice.BeaconRangingService"
android:enabled="true" />
<activity
android:name="Home"
android:configChanges="orientation"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="Infopage"
android:configChanges="orientation"
android:screenOrientation="portrait" >
</activity>
<activity
android:name="BeaconFoundPage"
android:configChanges="orientation"
android:screenOrientation="portrait" >
</activity>
<!--
<service android:name=".EstimoteService" />
<service
android:name="com.estimote.sdk.service.BeaconService"
android:exported="false" />
<service
android:name="org.altbeacon.beacon.service.BeaconService"
android:exported="false" />
-->
<service android:name=".BeaconService" >
</service>
<service
android:name="org.altbeacon.beacon.BeaconIntentProcessor"
android:enabled="true" >
</service>
</application>`
540 x 960設備訪問drawable-hdpi
values-hdpi
文件夾。
請更新您的hdpi文件夾並檢查。
或者你為特定尺寸的設備創建布局res/layout-w540dp-h960dp/layout.xml
,
那個sdk版本呢? 嘗試將此添加到您的清單中:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.