if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){ //Do something }
References
https://stackoverflow.com/questions/18664450/how-to-use-a-function-only-if-the-version-is-11
if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){ //Do something }
References
https://stackoverflow.com/questions/18664450/how-to-use-a-function-only-if-the-version-is-11