简体   繁体   English

决定支持哪个Android API版本的因素(内部应用程序)

[英]Factors when deciding which Android API version to support (in-house application)

(Let me begin by saying that a) I appreciate this is the wrong place to ask which version I should use, especially because my question is only locally relevant, and b) I am surprised this hasn't been done to death, but it appears it hasn't!) (首先我要说的是)a)我很欣赏这是一个错误的地方,可以问我应该使用哪个版本,特别是因为我的问题只与当地相关,而且b)我很惊讶这还没有做到死,但它看来还没有!)

At work, I have been tasked with writing an Android application for internal use, by largely non-technical users. 在工作中,我的任务是编写一个供内部使用的Android应用程序,主要是非技术用户。 We have an existing application (which is dire), and a bunch of devices (currently all 7" tablets, but this is not necessarily going to be always true) running Froyo and Gingerbread for which the manufacturer has no plans to release ICS updates. On the one hand, it would suck to obsolete that hardware (although we could go for non-supported ICS-based 3rd party ROMs), but on the other hand it seems crazy to restrict myself to the 2.2 API when ICS seems to offer a range of shiny new features. 我们有一个现有的应用程序(这是可怕的),以及一系列设备(目前所有7“平板电脑,但这不一定总是如此)运行Froyo和Gingerbread,制造商没有计划发布ICS更新。一方面,它会淘汰硬件(虽然我们可以选择不支持的基于ICS的第三方ROM),但另一方面,当ICS 似乎提供一个时,将自己局限于2.2 API似乎很疯狂。一系列闪亮的新功能。

Is there a good comparison reference out there, to see the key differences between API levels? 有没有一个很好的比较参考,看看API水平之间的关键差异? Also, given the glacial adoption rate of 4.0, am I insane to even consider dropping 2.x just yet? 另外,考虑到4.0的冰川采用率,即使考虑降低2.x,我还是疯了吗? And most importantly of all, what factors should inform my decision as to which API to support, that I haven't even mentioned above? 最重要的是,哪些因素应该让我决定支持哪个API,我上面没有提到过?

First Question you have to ask yourself is: Which feature do you want to use from ICS which is NOT available in 2.2/2.3 ? 您要问自己的第一个问题是:您想在ICS中使用哪种功能,2.2 / 2.3中没有这个功能? If the answer is "I don't know" then you absolutely should stick to 2.2. 如果答案是“我不知道”那么你绝对应该坚持2.2。 You have the option to use a SupportPackage , if you like to integrate some features of Higher Versions. 如果要集成更高版本的某些功能,可以选择使用SupportPackage

If you know a specific feature you'd like to use, check if it is inside the SupportPackage. 如果您知道要使用的特定功能,请检查它是否在SupportPackage中。

You can use this http://developer.android.com/sdk/api_diff/9/changes.html for differences. 您可以使用此http://developer.android.com/sdk/api_diff/9/changes.html获取差异。 I personally think that for phone apps support for new apps must be from 2.2 onwards. 我个人认为,对于手机应用程序支持新应用程序必须从2.2开始。 For tablet 3.0 onwards, because 3.0 and onwards are really tablet OS'es and 2.2,2.3 are phone OS'es. 对于平板电脑3.0以上,因为3.0及以上版本是平板电脑操作系统,2.2,2.3是手机操作系统。 You can use support packages for lower versions if you need higher end features(not all of them, but important ones like fragments etc.,). 如果您需要更高端的功能(不是所有功能,而是重要的功能,如片段等),您可以使用支持包作为较低版本。 But for Phones I d stick to 2.2 and for tablets well, since Android was customized 3 onwards for tablets, I generally would go for that, unless you have 2.2, 2.3 tablets in mind as targets. 但是对于手机而言,我坚持使用2.2和平板电脑,因为Android是针对平板电脑定制的3个版本,我通常会这样做,除非你有2.2,2.3平板电脑作为目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM