Below is work in targetSdkVersion="28" but failed in targetSdkVersion="29"
B4X:
rp.CheckAndRequest(rp.PERMISSION_READ_PHONE_STATE)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result = False Then
MsgboxAsync("No permission to access phone storage", "")
ExitApplication
Else
id1 = pid.GetDeviceId
End If
Last edited: