Android manifest that will support Galaxy S4, HTC One

前端 未结 3 544
温柔的废话
温柔的废话 2021-01-21 17:48

Im trying to create Android manifest that Google Play will show to Samsung Galaxy S4, HTC One and so on since current one doesn\'t list those in compatible devices list

相关标签:
3条回答
  • 2021-01-21 17:51

    in my app i use this manifest (i changed the package and activity names):

    <?xml version="1.0" encoding="utf-8"?>
    <manifest 
        xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.blabla"
        android:versionCode="8"
        android:versionName="1.6">
    
        <uses-sdk android:minSdkVersion="7" 
                  android:targetSdkVersion="18"/>
    
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    
        <application 
            android:icon="@drawable/ic_launcher" 
            android:label="@string/app_name">
    
            <activity
                android:label="@string/app_name"
                android:name="com.blabla.Activity"
                android:configChanges="orientation" >
    
                <intent-filter >
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
    
            </activity>
    
            <activity
                android:label="@string/app_name"
                android:name="com.blabla.Optionen" >
            </activity>
    
        </application>
    </manifest>
    

    And the Google Play store says that it is compatible with > 4000 devices, HTC One an SGS4 are included.

    I hope i understand your question right.

    0 讨论(0)
  • 2021-01-21 17:52

    I hope you are looking for this,

    Change this in Manifest

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:xlargeScreens="true"        
    />
    

    Only, this won't help. You want different image sizes, different layouts for different resolutions.

    Edit:

    http://developer.android.com/guide/practices/screens_support.html

    You have to add differnt folder for different layout in res folder --> hdpi,mdpi,ldpi and for large screens you xhdpi(for Tablet) and large-hdpi or xlarge (for NXzoom). and also set Images and textsize different in different layout as per screensize.

    0 讨论(0)
  • 2021-01-21 18:15

    You can do this configurations on Android Developer Console, which will publish the app to only the devices you select.

    0 讨论(0)
提交回复
热议问题