Android Question How to read IMEI Number?

Pravee7094

Active Member
Hello all,

I used the below code to read the IMEI number

B4X:
Sub GenerateID

      Dim P As Phone

      Dim IDAndroid As String=P.GetSettings("android_id")

      Log(IDAndroid)

End Sub

It worked But the IMEI number is unreadable. This code returns a hexadecimal value like 634ccec6eeaXXXX.
Why it returns a hexadecimal value? Is there any security reason? If no How to read the IMEI number properly?
Any support?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…