Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Friday, April 27, 2012
How to obtain the Android API Level of a device
How can I find out which API Level my device is using?
I checked the firmware version of it. It's 1.6. Does that mean it uses API Level 4?
Yes, it does. Programmatically, use Build.VERSION: http://developer.android.com/reference/android/os/Build.VERSION.html
ReplyDeletePlatform Version API Level
ReplyDeleteAndroid 2.1 -> 7
Android 2.0.1 -> 6
Android 2.0 -> 5
Android 1.6 -> 4
Android 1.5 -> 3
Android 1.1 -> 2
Android 1.0 -> 1
and yes, you can also use the Build.VERSION()