我有三星galaxy s4 mini,屏幕尺寸为540 x 960像素,4.3英寸(~256 ppi像素密度)。 我的应用程序在所有设备上完美运行接受galaxy s4 mini,galaxy s4,galaxy s5。 我已经访问过此链接,但它不会影响设备。链接在下面 Android App is not compatible with Samsung 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>`
答案 0 :(得分:1)
540 x 960设备访问drawable-hdpi
values-hdpi
个文件夹。
请更新您的hdpi文件夹并检查。
或u shud为特定尺寸的设备创建布局res/layout-w540dp-h960dp/layout.xml
,
答案 1 :(得分:0)
那么sdk版本呢?尝试将此添加到您的清单中:
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />