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

cambol

Active Member
Licensed User
Longtime User
Below is work in targetSdkVersion="28" but failed in targetSdkVersion="29"

Code:
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:
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

Similar Threads

  • Question Question
Android Question targetSdkVersion=29
Replies
6
Views
6K
Replies
5
Views
4K
Replies
15
Views
55K
Back
Top