Example how to use it:
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.GINGERBREAD) {
// only for gingerbread and newer versions
}
More Related Contents:
- How to retrieve the android sdk version? [duplicate]
- versionCode vs versionName in Android Manifest
- How do I check if an app is a non-system app in Android?
- Flutter: upgrade the version code for play store
- Can’t apply system screen brightness programmatically in Android
- How to set build and version number of Flutter app
- Send Objects from android client to C server
- Trying to convert String to JSONObject skips try & catch
- Android Facebook style slide
- Change background color of selected item on a ListView
- Asynctask vs Thread in android
- How to use UsageStatsManager?
- Prevent status bar for appearing android (modified)
- Use a custom contextual action bar for WebView text selection
- ImageView scaling TOP_CROP
- Android – Volume Buttons used in my application
- Error :: duplicate files during packaging of APK
- Android intent for playing video?
- Is there a way to automate the Android SDK installation?
- Android listview row delete animation
- Save data and change orientation
- MapView inside a ScrollView?
- [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
- Android – OnDateChangedListener – how do you set this?
- How do I detect a cancel click of the datepicker dialog?
- How to use notifyDataSetChanged() in thread
- How to change the star images of the RatingBar?
- Android Emulator: This app won’t run without Google Play services
- Java.lang.ClassNotFoundException after Android studio update
- Android:How to upload .mp3 file to http server?