Determining Android Version - or something

Can anyone tell me why the function which is supposed to return the android version

iTJBuild_VERSION.JavaClass.SDK

returns 29 for android 10 and 36 for android 16? Should I be using something else instead? (Using this one at the suggestion of the net)

It returns the API level, which is different from the OS version.

For most purposes, using TOSVersion.Check from System.SysUtils e.g.

if TOSVersion.Check(16) then  
  // Do something available/applicable in Android 16 or higher

Is sufficient.