我应该为不同的Android API级别我的应用程序的多个版本? [英] Should I create multiple versions of my app for different Android API levels?
问题描述
的Android版本跨设备的电流分布中发现:
The current distribution of Android versions across devices is found in:
http://developer.android.com/about/dashboards/index.html
我要创建一个应用程序(这不是游戏),我不知道我是否应该创建三个不同的版本吧:一个用于ICS和更高,一个用于升级Froyo,姜饼和蜂窝,一对巧克力慕斯蛋糕和甜甜圈。我觉得这是一个非常糟糕的想法,但我想最大限度地利用较新的操作系统,而无需牺牲与较低的Android版本中,其中有可能是一个更简单的方法,比方说,对于用户界面的兼容性。
I'm about to create an app (which isn't a game) and I'm wondering whether I should create three different versions of it: one for ICS and higher, one for Froyo, Gingerbread and Honeycomb, and one for Eclair and Donut. I feel that this is a very bad idea but I want to make the most out of the newer OSes without having to sacrifice compatibility with the lower Android versions, for which there is perhaps a simpler approach, say, for the UI.
有什么想法?如何将经验丰富的Android开发处理这个?
Any thoughts? How would seasoned Android developers approach this?
推荐答案
您可以使用的支持库,它允许您使用ICS的功能,如早期的Android平台的碎片。
You can use the support library, which allows you to use ICS features like fragments on earlier Android platforms.
您应该考虑哪些平台是值得支持的。例如,当前数据的表明甜甜圈重新presents的约0.5%目前的市场。
You should consider which platforms are worth supporting. For instance, current data suggests that Donut represents about 0.5% of the current market.
如果你打算使应用程序可以通过谷歌播放,支持多种文件的apk一个单一的应用程序,针对不同的API级别。这确实造成了一点维护头疼的你,虽然,我会建议反对。此外,其他市场(如亚马逊的AppStore)不支持每个应用程序的多个.apk文件的文件;你不得不发布为两个独立的应用程序。
If you're going to make the app available through Google Play, it supports multiple .apk files for a single app, targeting different api levels. This does create a bit of a maintenance headache for you, though, and I would recommend against it. Also, other markets (like Amazon's Appstore) don't support multiple .apk files per application; you'd have to publish as two separate applications.
您也应该阅读href=\"http://developer.android.com/training/basics/supporting-devices/platforms.html\" rel=\"nofollow\">不同版本的平台上支持。它提供了关于这个主题的指导。
You should also read the docs on supporting different platform versions. It provides guidance on this topic.
这篇关于我应该为不同的Android API级别我的应用程序的多个版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!