Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
234 views
in Technique[技术] by (71.8m points)

galaxy - Android: My app is not supporting Galxy S 4

I'm trying to update my application on the store to make it compatible with the Galaxy S 4.

My app uses Maps V2, it must not be installed on tablets, has minSdkVersion and targetSdkVersion both set to 9.

This is my Manifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="it...."
    android:versionCode="113"
    android:versionName="1.1.3" >

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

    <permission
        android:name="it....permission.MAPS_RECEIVE"
        android:protectionLevel="signature" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_CORSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_GPS" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true" />

    <uses-feature
        android:name="android.hardware.camera.autofocus"
        android:required="false" />

    <compatible-screens>

        <!-- all small size screens -->
        <screen
            android:screenDensity="ldpi"
            android:screenSize="small" />
        <screen
            android:screenDensity="mdpi"
            android:screenSize="small" />
        <screen
            android:screenDensity="hdpi"
            android:screenSize="small" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="small" />
        <screen
            android:screenDensity="480"
            android:screenSize="small" />

        <!-- all normal size screens -->
        <screen
            android:screenDensity="ldpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="mdpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="hdpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="normal" />
        <screen
            android:screenDensity="480"
            android:screenSize="normal" />

        <!-- all large size screens -->
        <screen
            android:screenDensity="ldpi"
            android:screenSize="large" />
        <screen
            android:screenDensity="mdpi"
            android:screenSize="large" />
        <screen
            android:screenDensity="hdpi"
            android:screenSize="large" />
        <screen
            android:screenDensity="xhdpi"
            android:screenSize="large" />
        <screen
            android:screenDensity="480"
            android:screenSize="large" />
    </compatible-screens>

    <application
        android:debuggable="false"
        android:icon="@drawable/ic_launcher"
        android:label="..." >
        <uses-library android:name="com.google.android.maps" />

        <activity
            ...
            List of all the activities
            ...
        </activity>

        <meta-data 
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="AIz  ...  j-Y" />

    </application>

</manifest>

Does someone knows why the Galaxy S 4 is not supported when i try to upload my application on the store?

This is what i getwhen I look at the compatible devices of my new APK in the Android Developer Console:

enter image description here

P.S. In the "screenDensity" attribute for the "screen" tag I have to use the value "480" instead of "xxhdpi" because it is not supported.

That's the error I get if I use "xxhdpi":

Error: String types not allowed (at 'screenDensity' with value 'xxhdpi'). AndroidManifest.xml /ICSMob line 84 Android AAPT Problem

P.P.S. the xxhdpi screen is supported: I can see it when I click on the APK line in the Dev Console and expand the screen layout section. Here it is:

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Just Edit Target SDK version to 17 in manifest

    android:targetSdkVersion="17"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...