Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to retrieve the android sdk version? [duplicate]

How can I get the current Android SDK version(1.5, 1.6, 2.0, etc.) programmatically?

like image 269
Arutha Avatar asked Dec 10 '09 18:12

Arutha


People also ask

How do I find Android SDK version?

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”).

How do I find my SDK version?

This can be found under the menu TOOLS -> Android -> Android SDK Manager.

How do I remove old Android SDK?

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.


1 Answers

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.

like image 112
Erich Douglass Avatar answered Sep 20 '22 11:09

Erich Douglass