You can use android.os.Build.JELLY_BEAN_MR1. It's ok to use it because it's compiled by SDK.