问题
I tried uploading Multiple Apk in google play store, but it shows around 3000 devices in the unsupported list which include All Nexus and Moto Devices, and few Samsung high end devices.
Please suggest me some options to include these devices. Thanks in Advance.
Moto devices:
EDIT:
Samsung Devices:
Nexus Devices:
Phone Manifest:
...
<compatible-screens>
<screen
android:screenDensity="ldpi"
android:screenSize="small" />
<screen
android:screenDensity="mdpi"
android:screenSize="small" />
<screen
android:screenDensity="mdpi"
android:screenSize="normal" />
<screen
android:screenDensity="hdpi"
android:screenSize="normal" />
<screen
android:screenDensity="mdpi"
android:screenSize="large" />
<screen
android:screenDensity="hdpi"
android:screenSize="large" />
</compatible-screens>
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="false" />
...
Tablet Manifest:
...
<compatible-screens>
<screen
android:screenDensity="xhdpi"
android:screenSize="large" />
<screen
android:screenDensity="xhdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="hdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="mdpi"
android:screenSize="xlarge" />
</compatible-screens>
<supports-screens
android:anyDensity="true"
android:largeScreens="false"
android:normalScreens="false"
android:resizeable="false"
android:smallScreens="false"
android:xlargeScreens="true" />
...
回答1:
Remove all section related to devices support in phone APK and add versionCode say x
. By default, Phone APK will give support to all the devices. Now, give the devices support details only in your tablet APK while the versionCode of tablet APK must be x+1
.
Change both the manifests as given below.
On play store, go to APK section of your app. Switch to Advanced mode.
Upload the phone APK (with lower versionCode say
x
) first and then upload the tablet APK (with higher versionCode sayx+1
).Make sure that both these APKs that you uploaded are in
Activated
state.Publish the app, and now you are happy to go.
Phone Manifest:
...
android:versionCode="x"
...
<uses-sdk
android:minSdkVersion="9"
android:targetSdkVersion="21" />
<!--
<compatible-screens>
<screen
android:screenDensity="ldpi"
android:screenSize="small" />
<screen
android:screenDensity="mdpi"
android:screenSize="small" />
<screen
android:screenDensity="mdpi"
android:screenSize="normal" />
<screen
android:screenDensity="hdpi"
android:screenSize="normal" />
<screen
android:screenDensity="mdpi"
android:screenSize="large" />
<screen
android:screenDensity="hdpi"
android:screenSize="large" />
</compatible-screens>
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="false" />
-->
For supporting the tablet only devices, you should refer this section in android developer site.
Tablet Manifest:
...
android:versionCode="x+1"
...
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />
<!--
<compatible-screens>
<screen
android:screenDensity="xhdpi"
android:screenSize="large" />
<screen
android:screenDensity="xhdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="hdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="mdpi"
android:screenSize="xlarge" />
</compatible-screens>
<supports-screens
android:anyDensity="true"
android:largeScreens="false"
android:normalScreens="false"
android:resizeable="false"
android:smallScreens="false"
android:xlargeScreens="true" />
-->
<supports-screens
android:largeScreens="true"
android:normalScreens="false"
android:requiresSmallestWidthDp="600"
android:smallScreens="false"
android:xlargeScreens="true" />
I hope this answer might help you.
来源:https://stackoverflow.com/questions/28987978/google-play-showing-nexus-samsung-and-motorola-and-some-other-devices-as-unsuppo