API 级别是什么意思? [英] What does API level mean?

查看:31
本文介绍了API 级别是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道 API 级别 到底是什么意思.我似乎无法通过 Google 搜索找到答案.

I am wondering what exactly API level means. I couldn't seem to find an answer by searching on Google.

谁能解释一下API级别这个词是什么意思?

Could anyone please explain what the term API level means?

推荐答案

This实际上总结得很好.

API 级别通常意味着作为程序员,您可以与设备的内置功能和功能进行通信.随着 API 级别的增加,功能也会增加(尽管其中一些可能会被弃用).

API Levels generally mean that as a programmer, you can communicate with the devices' built in functions and functionality. As the API level increases, functionality adds up (although some of it can get deprecated).

为应用程序开发选择 API 级别至少应考虑两件事:

Choosing an API level for an application development should take at least two thing into account:

  1. 当前发行版 - 有多少设备可以实际支持我的应用程序,如果它是为 API 级别 9 开发的,则无法在 API 级别 8 及更低级别上运行,那么只有"大约 60% 的设备可以运行它(截至本文发布之日).
  2. 选择较低的 API 级别可能会支持更多设备,但为您的应用获得的功能较少.如果您选择更高的 API 级别,您也可能会更加努力地实现您可以轻松获得的功能.
  1. Current distribution - How many devices can actually support my application, if it was developed for API level 9, it cannot run on API level 8 and below, then "only" around 60% of devices can run it (true to the date this post was made).
  2. Choosing a lower API level may support more devices but gain less functionality for your app. you may also work harder to achieve features you could've easily gained if you chose higher API level.

Android API 级别可以分为五个主要组(不科学,但到底是什么):

Android API levels can be divided to five main groups (not scientific, but what the heck):

  1. Android 1.5 - 2.3(纸杯蛋糕到姜饼)-(API 级别 3-10)- 专为智能手机打造的 Android.
  2. Android 3.0 - 3.2 (Honeycomb)(API 级别 11-13)- 专为平板电脑打造的 Android.
  3. Android 4.0 - 4.4 (KitKat) -(API 级别 14-19) - 与大量附加功能的大融合,完全改进的 Android 版本,适用于手机和平板电脑.
  4. Android 5.0 - 5.1 (Lollipop) -(API 级别 21-22)- 引入了 Material Design.
  5. Android 6.0 - 6....(Marshmallow)-(API 级别 23-...)- 运行时权限,Apache HTTP 客户端已删除

这篇关于API 级别是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆