I am trying to check the android 12 API level using the below code.
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.S)
{
// Do something for Android 12 and above versions
}
else
{
// Do something for phones running an SDK before Android 12
}
but always execute else part when the run application in the android 12 beta device. is it another way to check the android 12 beta version?