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

cambol

Active 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:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…