The title says it. I need to get the android OS build version. I need to distinguish between android 4.4.2 and 4.4.3 + as there is a change in the way Samsung handles IR codes.
Its ab it old, but you just need the reflection lib:
B4X:
Dim r As Reflector
Dim Api As Int
Dim sApi As String
Api = r.GetStaticField("android.os.Build$VERSION", "SDK_INT")
sApi = r.GetStaticField("android.os.Build$VERSION", "RELEASE")
If Api >= 23 Then
Log("Api is above 23")
If sApi = "6.0.1" Then
Log("Its a 6.0.1 device")
End If
End If