checking android version in code code example
Example: code for checking android build version
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q){
//do something
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q){
//do something
}