Robert Valentino Well-Known Member Licensed User Longtime User Dec 21, 2020 #1 According to this post by Erel (https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content) On Android 10 " None of the device unique ids are exposed. The only id available is the advertising id: https://www.b4x.com/android/forum/threads/101050/#content" I don't have a device with Android 10 on it. Can someone tell me what happens if I go after one of the device unique ids? B4X: Dim R As Reflector r.GetStaticField("android.os.Build", "SERIAL") Dim P As Phone P.GetSettings("android_id") Does the APP crash? Or is nothing returned? BobVal
According to this post by Erel (https://www.b4x.com/android/forum/threads/android-jar-targetsdkversion-minsdkversion.87610/#content) On Android 10 " None of the device unique ids are exposed. The only id available is the advertising id: https://www.b4x.com/android/forum/threads/101050/#content" I don't have a device with Android 10 on it. Can someone tell me what happens if I go after one of the device unique ids? B4X: Dim R As Reflector r.GetStaticField("android.os.Build", "SERIAL") Dim P As Phone P.GetSettings("android_id") Does the APP crash? Or is nothing returned? BobVal
Peter Simpson Expert Licensed User Longtime User Dec 21, 2020 #2 On my test device which is a P 4 XL running Android 11. Reflector returns unknown Phone returns 1889c872......... etc etc etc. Upvote 0
On my test device which is a P 4 XL running Android 11. Reflector returns unknown Phone returns 1889c872......... etc etc etc.
Robert Valentino Well-Known Member Licensed User Longtime User Dec 21, 2020 #3 Thanks, at least it isn't crashing. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 22, 2020 #4 I've updated the tutorial: Most of the device unique ids are not exposed. Two are available: - Advertising id: https://www.b4x.com/android/forum/threads/101050/#content - Phone.GetSettings ("android_id") - https://www.b4x.com/android/forum/threads/get-unique-id-for-user.124396/#content Upvote 0
I've updated the tutorial: Most of the device unique ids are not exposed. Two are available: - Advertising id: https://www.b4x.com/android/forum/threads/101050/#content - Phone.GetSettings ("android_id") - https://www.b4x.com/android/forum/threads/get-unique-id-for-user.124396/#content