fazlurr
11/26/2014 - 3:55 AM

Retrieving Android API version programmatically - http://stackoverflow.com/a/3940823

Retrieving Android API version programmatically - http://stackoverflow.com/a/3940823

int currentapiVersion = android.os.Build.VERSION.SDK_INT;
if (currentapiVersion >= android.os.Build.VERSION_CODES.FROYO){
    // Do something for froyo and above versions
} else{
    // do something for phones running an SDK before froyo
}