Is there an API in the Android SDK that allows you to know the API version from the currently running program?
api android android-api-levels
If you look at the Android document, android.os.Build.VERSION.SDK_INT There's something like this.
int currentapiVersion = android.os.Build.VERSION.Gets the level of SDK_INT; //SDK.
if (currentapiVersion >= android.os.Build.VERSION_CODES.LOLLIPOP){
// The current device version is Lollipop or higher.
} } else{
// The current device version is less than Lollipop.
}
545 Unable to install versioned in Google Colab
551 Who developed the "avformat-59.dll" that comes with FFmpeg?
552 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
757 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
545 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.