3

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>`
Community
  • 1
  • 1
Malay
  • 101
  • 9
  • Can you post your AndroidManifest.xml? – ianhanniballake Dec 16 '14 at 05:46
  • First of all, what do you mean by not work, secondly, I have a galaxy s4, and dont see any issue with it. – Biu Dec 16 '14 at 06:08
  • I mean in all devices its look perfect but in s4 mini all views positions are changed. – Malay Dec 16 '14 at 06:12
  • Can you post the logcat log. – Odin Dec 16 '14 at 06:19
  • 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. (http://developer.android.com/training/multiscreen/index.html) (http://developer.android.com/guide/practices/screens_support.html) – Biu Dec 16 '14 at 06:45
  • If the application is crashing then it will show the probable cause – Odin Dec 16 '14 at 08:22
  • Actually app is not crashing from any activity. I think its design issue. – Malay Dec 16 '14 at 10:05

2 Answers2

1

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,

M S Gadag
  • 2,057
  • 1
  • 12
  • 15
0

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

<uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="21" />
anil
  • 2,083
  • 21
  • 37