3
votes

I have Samsung galaxy s4 mini and screen size is 540 x 960 pixels, 4.3 inches (~256 ppi pixel density). My app work perfectly in all devices accept galaxy s4 mini, galaxy s4, galaxy s5. I have visited this link an try it but it doesn't affect in device. Link is below Android App is not compatible with Samsung galaxy S4 Any solution exist then please suggest me.

My AndroidManifest.xml file Code: `

<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>`
2
Can you post your AndroidManifest.xml?ianhanniballake
First of all, what do you mean by not work, secondly, I have a galaxy s4, and dont see any issue with it.Biu
I mean in all devices its look perfect but in s4 mini all views positions are changed.Malay
Can you post the logcat log.Odin
You just have to tweak with what is not showing right. Android devices vary in sizes and versions. That is why Google has these posts about best practices in supporting different screen sizes. (developer.android.com/training/multiscreen/index.html) (developer.android.com/guide/practices/screens_support.html)Biu

2 Answers

1
votes

540 x 960 devices access drawable-hdpi values-hdpi folders.

please update your hdpi folder and check.

or u shud create layout res/layout-w540dp-h960dp/layout.xml for specific size device,

0
votes

And what about sdk version? try to add this into your manifest:

<uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="21" />