Android 应用程序:推荐的具有最广泛吸引力的 targetSdk 是什么?
我有一个 Android 应用程序,只需要访问互联网,并且希望以 API 级别 3 (1.5) 为目标,以覆盖最广泛的手机基础。但是,目标 API 级别 3 似乎隐式需要用户可见的两个附加权限:修改 sd 卡和读取手机状态。
请参阅:Android 权限:电话呼叫:读取手机状态和身份< /a>)
那么难题是,我是否以 API 级别 4 为目标并拒绝运行 1.5 的用户,还是以 API 级别 3 为目标并拒绝那些因我的应用程序请求了如此多不需要的权限而感到不安的用户?
这里最明智的做法是什么?真的有很多用户仍受限于 API 级别 3 吗?
我很欣赏任何提供的智慧!谢谢!
I have an Android app that only needs internet access and would like to target API level 3 (1.5) to reach the broadest handset base. However, it appears that targeting API level 3 implicitly requires two additional permissions that are visible to users: modify sd card, and read phone state.
See: Android permissions: Phone Calls: read phone state and identity)
So the connundrum, do I target API level 4 and turn away users running 1.5, or do I target API level 3 and turn away users who are upset that my app is requesting so many permissions that it shouldn't need?
What is the smartest thing to do here? Are there really a lot of users still limited to API level 3?
I appreciate any wisdom offered! Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
提供一个适用于 1.6 的应用程序也将免费为您提供 2.1 和 2.2 的用户,因此 Ravi Vyas 的论证有点缺陷。
如果您不需要较新的功能,我会坚持使用 1.6(目标级别 4),如果您有一些空闲时间,请为目标级别 3 创建应用程序的新版本,并将清单中的 max 和 minSdk 设置为 3。这样你支持 1.5er 的人,但没有人看到市场上有两个版本的应用程序。
Providing an app that works with 1.6 will also give you the users of 2.1 and 2.2 for free, therefore Ravi Vyas argumentation is bit flawed.
If you don't need the newer features I would stick with 1.6(target level 4) and if you have some spare time create a new version of your app for target level 3 and set max and minSdk in the manifest to 3. This way you have support for the 1.5er people but nobody sees that there are two versions of your app in the market.
根据此图表,Android 1.5 仍占约 34%市场。所以你可能需要考虑到这一点。
According to this chart, Android 1.5 still makes up about 34% of the market. So you might want to take that into account.
目前 2.1 占有最大的市场份额,为 37.2%,随着更多新手机的问世和旧手机的升级,这一份额将会增加,因此在 2.2 出现之前,2.1 是最好的选择。在某些方面,最好跟上更新的版本,这样您就可以提供更多功能,并且随着 Google 试图减少碎片化,您的用户群始终在增长。
安卓平台| 设备的百分比
Android 1.5 | 34.1%
安卓 1.6 | 28.0%
安卓 2.1 | 37.2%
来源
更新图表:
我仍然觉得为 2.1 编写代码比为 1.6 和 1.5 编写代码更好,在您拥有添加的功能之前,现在您拥有近一半的 Android 人口。
Currently 2.1 holds the largest market share at 37.2% , this is going to see an increase as more new phones come out and old phones get an upgrade , so until 2.2 comes out 2.1 is the best bet. In some ways is best to keep up with the updated versions where you can provide more features and your user base is always on the rise as Google tries to reduce fragmentation.
Android Platform | Percent of Devices
Android 1.5 | 34.1%
Android 1.6 | 28.0%
Android 2.1 | 37.2%
Source
Updated Chart :
I Still feel its better to code for 2.1 instead of 1.6 and 1.5 , before you had the added features , now you have nearly half the Android population.