How can I get the current Android SDK
version(1.5, 1.6, 2.0, etc.) programmatically?
Navigate to “Appearance & Behavior” > “System Settings” > “Android SDK” and now you can see the SDK versions that were installed in the “API Level” and “Name” columns (focus on “API Level”).
This can be found under the menu TOOLS -> Android -> Android SDK Manager.
Now the deletion of SDKs can be done in Settings > Appearance & Behaviour > System Settings > Android SDK. Click to see each SDK details. Unmark checkbox and click in Apply.
The String Build.VERSION.RELEASE
will give you the user-visible version string (i.e 1.5, 1.6, 2.0), while Build.VERSION.SDK_INT
will give you a value from Build.VERSION_CODES
that would be better to use if you want to compare against it programatically.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With