3

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

2 回答 2

1

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

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

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

于 2014-12-16T07:02:10.290 回答
0

那么sdk版本呢?尝试将其添加到您的清单中:

<uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="21" />
于 2014-12-16T06:04:55.553 回答