SDKINT
SDK_INT refers to the device’s current Android API level and is exposed in code as Build.VERSION.SDK_INT. It is a runtime integer that indicates the version of the Android platform on which the device is running. Developers use SDK_INT to adapt behavior to the capabilities of the platform at runtime, rather than relying solely on compile-time information.
In practice, SDK_INT is used in conditional statements to guard access to newer APIs. For example, a
SDK_INT corresponds to API levels defined by android.os.Build.VERSION_CODES. Each Android release has a specific API level,
Unlike minSdkVersion and targetSdkVersion, which are manifest attributes set at build time to indicate compatibility and
See also: android.os.Build, android.os.Build.VERSION_CODES.
---