Android Question (rp.PERMISSION_READ_PHONE_STATE) failed in targetSdkVersion="29"

cambol

Member
Licensed User
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:

DonManfred

Expert
Licensed User
Please use [CODE]code here...[/CODE] tags when posting code. (i´m sure you got told this already)

You are no longer able to get any DeviceID.

This is a good alternative.
 
Last edited:
Upvote 0
Top