You can get it by calling Build.VERSION.SDK.
Build.VERSION.SDK
From 1.6 on, you should use Build.VERSION.SDK_INT instead because Build.VERSION.SDK is deprecated.
Build.VERSION.SDK_INT
1.4m articles
1.4m replys
5 comments
57.0k users