
例如,从Google Play隐藏/禁用Honeycomb 3.1版?
目前我有
<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"/>
但我不希望3.1版本的用户看到我的应用程序.
谢谢!
解决方法 在谷歌播放中你可以上传多个apk,这样你就可以有不同的版本来定位不同的平台(也许你有一个版本具有较新的sdk功能,但你保留了另一个版本为不同功能的旧手机构建)…你可以有两个,使用相同的代码:一个目标低于3.x,另一个目标上面……当然,你必须用相同的代码维护两个apk.此外,我不认为它会阻止他们侧载,它只是从Play商店应用程序的结果中过滤掉它.假设您只想阻止3.1,并支持从1.5到4.1
对于一个apk,您将拥有:
<uses-sdk androID:minSdkVersion="3" androID:targetSdkVersion="16" androID:maxsdkVersion="10" />
对于另一个:
<uses-sdk androID:minSdkVersion="12" androID:targetSdkVersion="16" androID:maxsdkVersion="16" />
当然,在有意义的情况下调整目标和界限.如果max<可能会脾气暴躁目标,我不确定.并牢记目标sdk兼容性.. 作为一个后续,这里有一些关于多个apk的文档的见解:
API level
This is based on your manifest file’s element. You can use both the androID:minSdkVersion and androID:maxsdkVersion attributes to specify support for different API levels.
For example,you can publish your application with one APK that supports API levels 4 – 7 (AndroID 1.6 – 2.1)—using only APIs available since API level 4 or lower—and another APK that supports API levels 8 and above (AndroID 2.2+)—using APIs available since API level 8 or lower.
Note:
If you use this characteristic as the factor to distinguish multiple APKs,then the APK with a higher androID:minSdkVersion value must have a higher androID:versionCode value. This is also true if two APKs overlap their device support based on a different supported filter. This ensures that when a device receives a system update,Google Play can offer the user an update for your application (because updates are based on an increase in the app version code). This requirement is described further in the section below about Rules for multiple APKs.
You should avoID using androID:maxsdkVersion in general,because as long as you’ve properly developed your application with public APIs,it is always compatible with future versions of AndroID. If you want to publish a different APK for higher API levels,you still do not need to specify the maximum version,because if the androID:minSdkVersion is “4” in one APK and “8” in another,devices that support API level 8 or higher will always receive the second APK (because it’s version code is higher,as per the prevIoUs note).
http://developer.android.com/guide/google/play/publishing/multiple-apks.html
总结以上是内存溢出为你收集整理的android – 禁用特定版本,例如Honeycomb / 3.1全部内容,希望文章能够帮你解决android – 禁用特定版本,例如Honeycomb / 3.1所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)