Android Question Read Incoming Phone Number

JohnC

Expert
Licensed User
Upvote 0

Alberto Vasquez

Member
Licensed User
John Thanks for your comment. The example on thread you mentioned is not working well because I can read the "state" but I can't read the incoming number. May be some permission?
 
Upvote 0

JohnC

Expert
Licensed User
Use the RuntimePermissions lib and get the PERMISSION_READ_PHONE_STATE permission.

Here's the thread about runtime permissions:
 
Upvote 0

JohnC

Expert
Licensed User
The only other thing I can think of is that your app might need to be the default "Dialer/Phone" app in order to read the incoming phone number.
 
Upvote 0

Alberto Vasquez

Member
Licensed User
John thanks for your help. Now I have issue resolved. The problem was it need READ_CALL_LOG permission. Read call logs permission is restricted by google developer console but in this case this is a personal app so no problem!!! Regards!!!
 
Upvote 0
Top