安卓应用程序兼容性
我已经在 android 版本 1.6、2.1 和 2.2 下构建了我的应用程序,并且它可以工作。我想知道什么时候发布它是最好的:
- 在 1.6 下构建,因此它将与较新版本的 android 兼容
,或者
- 在 2.2 下构建并将“目标 SDK 版本”设置为 8 和“最小 SDK 版本”致 4
谢谢
I've build my app under the version 1.6, 2.1 and 2.2 of android and it works. I'd like to know when I'll publish it what is the best :
- Build under 1.6 and so it will be compatible with newer version of android
or
- Build under 2.2 and set "Target SDK version" to 8 and "Min SDK Version" to 4
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您不使用 2.1 或 2.2 特有的任何内容,则没有区别。例如,如果您使用 2.2 的安装到 SD 卡功能,则必须使用 Target SDK 和 min SDK 选项。
If you're not using anything that is specific to 2.1 or 2.2 there is no difference. If you for example use install to SD card feature of 2.2 you have to use Target SDK and min SDK option.
在 2.2 下构建并使用 Min SDK 版本。
目标版本描述如下:
“设置此属性后,应用程序表示它能够在旧版本(低至 minSdkVersion)上运行,但已明确测试可以与此处指定的版本一起使用。”
“市场份额”的实际统计数据可以在开发者网站上找到:
http://developer.android.com/resources/dashboard/platform-versions。 html
1.6 目前占 20%。
Build it under 2.2 and use Min SDK Version.
Target Version is described as the following:
"With this attribute set, the application says that it is able to run on older versions (down to minSdkVersion), but was explicitly tested to work with the version specified here."
Actual statistics of the "market share" are available on the developer website:
http://developer.android.com/resources/dashboard/platform-versions.html
1.6 takes 20% at the moment.