how to check build version in android studio 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
}