Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
您现在的位置: Android教程網 >> Android系統教程 >  >> Android 技術 >> Android 開發 >> 進階開發

API Level 對照表(更新至 2.3.3)

編輯:進階開發

Google 更新 SDK 的頻率實在不低,常有人搞不清楚「API Level 10 到底是哪一版」、「Android 3.0 Honeycomb 又對應哪個等級」。以下把當時的對應關係整理成一張表:

android 3.0 - honeycomb

android 2.3.3 - API Level 10

android 2.3 - API Level 9

android 2.2 - API Level 8

android 2.1 - API Level 7

android 2.0.1 - API Level 6

android 2.0 - API Level 5

android 1.6 - API Level 4

android 1.5 - API Level 3

android 1.1 - API Level 2

android 1.0 - API Level 1

該把 minSdkVersion 設在哪裡

當年約九成的 Android 裝置跑在 2.0 以上,所以取舍大致是這樣:想把相容性做到 99%,就用 1.5(Level 3)的 SDK 當基準;願意冒一點風險換取更多新 API,可以從 2.0(Level 5)開始。

不過有個在地化的坑要留意:不少國內山寨平板與低階機型的韌體一直卡在 1.5、1.6,甚至低於 2.0。如果你的應用鎖定的是海外市場,直接以 2.0 起步沒什麼問題;但若主要用戶在國內,這件事就得先想清楚。

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © Android教程網 All Rights Reserved