0

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

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

1 Answers1

1

Is this you are looking for?

android.os.Build.VERSION.SDK_INT;

You can also try this Build.VERSION.RELEASE;

Damien R.
  • 3,383
  • 1
  • 21
  • 32