I'm new to this as you can probably tell, but is there a way to display a devices IMEI, similar to what users do when they navigate to the settings about phone or dial *#06#
Basically want my app to launch and show that info
This is the code I'm trying to work with.
B4X:
Sub GetDeviceIMEI As String
Dim deviceUniqueIdentifier As String = ""
Dim tm As TelephonyManager
tm.Initialize
' Check if TelephonyManager is available
If tm.IsInitialized Then
deviceUniqueIdentifier = tm.GetDeviceId
End If
' If IMEI is not available, use Android ID
If deviceUniqueIdentifier = "" Then
deviceUniqueIdentifier = Settings.Secure.GetString(ContentResolver, "android_id")
End If
Return deviceUniqueIdentifier
End Sub
This is the QR code I was talking about. I thought it navigated to the Settings but it doesn't. It opens the dialler and enters *#06#.
If you check the QR code its content is: tel:*#06#