Android Question Android 9.0 ph.GetSettings("android_id") returns Null

Derek Johnson

Active Member
Licensed User
Longtime User
I've read that in Android 9 that this code will return "Unknown".

B4X:
    Dim ph As Phone, ID as string
    ID=ph.GetSettings("android_id")

However from crash reports that I have seen, on some 9.0 devices eg
OnePlus OnePlus 6 (OnePlus6) I think that is returning Null.

So to avoid any Null related issues it might be wise to check for this condition before making use of it.

Just a little observation.

Derek
 
Top