Get Version Android and Api Level

Vincenzo

Member
Licensed User
Longtime User
Hello,
I was trying to access the following fields of the static class Build.VERSION ():
RELEASE
SDK_INT

but without success. Can you help me?

I can access the class Build without problems but I can not have the information of Build.VERSION ().

Code and error :

Dim r As Reflector
Log ("info ..." & r.GetStaticField ("android.os.Build.VERSION", "RELEASE"))

java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.Exception
 
Last edited:
Top