Android 应用程序与 Samsung galaxy S4 mini 不兼容

标签 android screen-resolution screen-size multiscreen

我有三星 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>`

最佳答案

540 x 960 设备访问 drawable-hdpi values-hdpi 文件夹。

请更新您的 hdpi 文件夹并检查。

或者你应该为特定尺寸的设备创建布局res/layout-w540dp-h960dp/layout.xml

关于Android 应用程序与 Samsung galaxy S4 mini 不兼容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27498210/

相关文章:

android - GeoCoder getFromLocation 方法会导致抛出 NetworkOnMainThreadException 吗?

iPhone 5 屏幕尺寸 VS CSS 媒体查询

flutter - 我是否应该为应用程序的每个页面/屏幕创建 3 个不同的小部件,以便能够在不同尺寸的屏幕上运行?

android - 存储到 SD 卡时 Android 可接受的文件名是什么

android studio中的android opencv和NDK

android - 启动外部应用程序/Activity 并添加我自己的标题?

java - 改变屏幕尺寸

android - 大屏幕(2560x1600、2048x1536、1920x1200)宽度 dp

css - 更改屏幕大小时是否可以删除元素的类?

ios6 - 在iPhone5上,[[UISCreen mainScreen]边界] .size返回为320x480吗?