Denys Karpov
Denys Karpov

Reputation: 43

What method have ability show android version of device

Who's know how to get android version in code for example i need something like this

text.setText(somemethod.getAndroidVersion().toString()); 

Upvotes: 0

Views: 45

Answers (1)

Damien R.
Damien R.

Reputation: 3373

Is this you are looking for?

android.os.Build.VERSION.SDK_INT;

You can also try this Build.VERSION.RELEASE;

Upvotes: 1

Related Questions