Disable a specific version, for example, Honeycomb / 3.1

Is there a way to disable a specific version from Google Play. For example, hide / disable Honeycomb version 3.1 from Google Play?

I currently have

<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true"/> <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="10"/> 

But I do not want a user with version 3.1 to see my application.

Thanks!

+4
source share
2 answers

In google play, you can upload several apk files to have different versions for different platforms (you may have a version with new sdk functions, but you will save another version created for old phones with different functions). you can have two, with the same code: one that targets lower to 3.x, and another that targets lower ... then you will have to support two apks with the same code, of course. In addition, I do not think that this prevents them from downloading bonuses, he simply filters it out of his results in the application for the playback store.

Suppose you want to block only 3.1, and you support from 1.5+ to 4.1 For one apk you will have:

 <uses-sdk android:minSdkVersion="3" android:targetSdkVersion="16" android:maxSdkVersion="10" /> 

And for another:

 <uses-sdk android:minSdkVersion="12" android:targetSdkVersion="16" android:maxSdkVersion="16" /> 

Of course, adjust goals and boundaries as they make sense. It can be grumpy if max <target, I'm not sure. And keep in mind the target sdk compatibility ..

As a continuation, here are some information from the documentation for several apk's:

API Level This is based on your manifest file element. You can use the android: minSdkVersion and android: maxSdkVersion attributes to indicate support for different levels of the API. For example, you can publish your application with one APK that supports API levels 4-7 (Android 1.6 - 2.1) using only the APIs available from API level 4 or lower, and another APK that supports API levels 8 and higher (Android 2.2 +) - use of APIs available from API level 8 or lower. Note: If you use this feature as a factor to distinguish between multiple APKs, then an APK with a higher value for android: minSdkVersion should have a higher value for android: versionCode. This is also true if two APKs overlap support for their devices based on another supported filter. This ensures that when the device receives a system update, Google Play can offer the user an update for your application (since updates are based on increasing the version code of the application). This requirement is described further in the section below on the rules for multiple APKs. You should avoid using android: maxSdkVersion in general, as long as you have properly developed your application with public APIs, it is always compatible with future versions of Android. If you want to publish another APK for higher API levels, you still do not need to specify the maximum version, because if android: minSdkVersion is "4" in one APK and "8" in another, devices that support API level 8 or higher are always will receive the second APK (because its version code is higher, as in the previous note).

http://developer.android.com/guide/google/play/publishing/multiple-apks.html

+3
source

you can use maxSdkVersion="11" (but then you also exclude Android 3.2 and Android 4.x); I am not sure if this fits your needs.

-1
source

Source: https://habr.com/ru/post/1443255/


All Articles