端末のAndroid OS バージョン取得

android.os.Build.VERSION

SDK_INT:SDK のバージョン数値。

コード
Build.VERSION.SDK_INT

android.os.Build.VERSION_CODES
定数
1:BASE October 2008: The original, first, version of Android.
2:BASE_1_1 February 2009: First Android update, officially called 1.1.
3:CUPCAKE May 2009: Android 1.5.
10000:CUR_DEVELOPMENT Magic version number for a current development build, which has not yet turned into an official release.
4:DONUT September 2009: Android 1.6.
5:ECLAIR November 2009: Android 2.0
Applications targeting this or a later release will get these new changes in behavior:

The Service.onStartCommand function will return the new START_STICKY behavior instead of the old compatibility START_STICKY_COMPATIBILITY.
6:ECLAIR_0_1 December 2009: Android 2.0.1
7:ECLAIR_MR1 January 2010: Android 2.1
8:FROYO June 2010: Android 2.2
9:GINGERBREAD November 2010: Android 2.3
10:GINGERBREAD_MR1 February 2011: Android 2.3.3.
11:HONEYCOMB February 2011: Android 3.0.
12:HONEYCOMB_MR1 May 2011: Android 3.1.
13:HONEYCOMB_MR2 June 2011: Android 3.2.


カテゴリー: Android, Developer   タグ: , , ,   この投稿のパーマリンク

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

次のHTML タグと属性が使えます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <img localsrc="" alt=""> <pre lang="" line="" escaped="" cssfile="">