Build.VERSION_CODES is an enumeration of the currently known SDK version codes.
In order to conditionally run code based on the device's Android version, use the TargetApi annotation to avoid Lint errors, and check the build version before running the code specific to the API level.
Here is an exa...