Get Android OS Version

If you ever need to get the version of the OS on which your app runs, you can try this out:


And you can use it against(for more check this out):



Finally you end up with something like:

if(android.os.Build.VERSION.SDK_INT == android.os.Build.VERSION_CODES.HONEYCOMB){
// do whatever you want here
Scroll to Top