posted by 네코냥이 2014. 7. 15. 15:33


버전가져오기


You can get it by calling Build.VERSION.SDK.

From 1.6 on, you should use Build.VERSION.SDK_INT instead
because Build.VERSION.SDK is deprecated.

http://stackoverflow.com/questions/3506792/android-api-version-programmatically





매칭 시키기


Code Name             Version      Api level

(no code name)         1.0          API level 1

(no code name)         1.1          API level 2

Cupcake                1.5          API level 3, NDK 1

Donut                  1.6          API level 4, NDK 2

Eclair                 2.0          API level 5

Eclair                 2.0.1        API level 6

Eclair                 2.1          API level 7, NDK 3

Froyo                  2.2.x        API level 8, NDK 4

Gingerbread         2.3 - 2.3.2     API level 9, NDK 5

Gingerbread         2.3.3 - 2.3.7   API level 10

Honeycomb              3.0          API level 11

Honeycomb              3.1          API level 12, NDK 6

Honeycomb             3.2.x         API level 13

Ice Cream Sandwich 4.0.1 - 4.0.2    API level 14, NDK 7

Ice Cream Sandwich 4.0.3 - 4.0.4    API level 15, NDK 8

Jelly Bean           4.1.x          API level 16

Jelly Bean           4.2.x          API level 17

Jelly Bean           4.3.x          API level 18

KitKat      4.4 - 4.4.2     API level 19