TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why it’s time to support only Android 4.0 and above

28 点作者 purpl3p3rs0n超过 11 年前

5 条评论

maaku超过 11 年前
Site is giving me a database error, so I&#x27;m committing the sin of posting based only on the title :(<p>Hipster Mountain View&#x2F;Palo Alto is not the world. Most people who manage to afford to buy a smartphone, use the thing until it dies. I personally <i>just</i> upgraded from an Android 2.3 device, and my latest Apple device is on iOS 2. And I read Hacker News for christ&#x27;s sake.<p>Maybe for your app, your community the norms are different. But be careful not to bias your data - you better be sure that you are not unknowingly turning away people who would be customers if only you supported their device.
评论 #6573724 未加载
评论 #6573341 未加载
评论 #6573725 未加载
评论 #6573283 未加载
评论 #6573834 未加载
fruzz超过 11 年前
It&#x27;s amazing to me that we&#x27;re saying that a three year old OS is too old to have software written for it. Especially given that a part of the laptop market has metamorphosed into the tablet market.<p>I guess that&#x27;s not a problem if you buy new tablets&#x2F;phones every year, which is what we&#x27;re moving towards.
评论 #6573497 未加载
评论 #6573496 未加载
MAGZine超过 11 年前
I feel that supporting Android 2.3 at this time is roughly equivalent to supporting IE6. For the majority of people, just stop targeting 2.3 support as a requirement. Perhaps it&#x27;ll net you some additional marketshare in emerging markets, but for the most part, ≥API14 is ubiquitous to a point where this is a sensible decision.
评论 #6573277 未加载
评论 #6573421 未加载
评论 #6573267 未加载
Zigurd超过 11 年前
I&#x27;ma let him finish when his site comes up, but here why I generally recommend targeting Android 4:<p>1. If you want to make a UI that scales across all device sizes, and you don&#x27;t want to use hacks like ActionBarSherlock that will become a maintenance headache after the moment of convenience, build your app skeleton around Android 4 APIs.<p>2. Targeting Android 4 avoids use of the Support Library for back-compatibility, and therefore avoids using FragmentActivity. This isn&#x27;t as bad as some of the back-compatible action bar hacks, but it is still an unnecessary complication in most cases. N.B. you may still want to use the Support Library for new APIs like PagerAdapter.<p>3. Tablets are going to increase in importance, and for some apps, tablets are the main target. Center your implementation strategy around tablets as the ideal experience, with multiple fragments on each tablet-size layout that are &quot;unrolled&quot; into sub-activities when running on a handset.<p>4. If you think the above point implies a unified code-base, yes, it does. Targeting Android 4 and above will simplify your unified code base.<p>The exception is apps that MUST target every user, and every device in the field. For example, my consultancy had an engagement with a dating site that needed to upgrade their Android app. After weighing the pluses and minuses, the conclusion was that it was better to put in more effort and incur some technical debt to reach every possible user. On the other hand, if you are writing an enterprise app for a green-field deployment, don&#x27;t even consider supporting old versions.
评论 #6573425 未加载
评论 #6573419 未加载
soapdog超过 11 年前
Just remember that in some countries Android 4.0 is yet to be the norm...