Вопрос

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

text.setText(somemethod.getAndroidVersion().toString()); 
Это было полезно?

Решение

Is this you are looking for?

android.os.Build.VERSION.SDK_INT;

You can also try this Build.VERSION.RELEASE;

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top