F Fayez Boulos Member Licensed User Mar 11, 2019 #1 Hi, Is there a way to capture the phone number of the device running the
F Fayez Boulos Member Licensed User Mar 11, 2019 #2 Hi, Is there a way to capture the phone number of the device running the App Upvote 0
walterf25 Expert Licensed User Longtime User Mar 11, 2019 #3 Fayez Boulos said: Hi, Is there a way to capture the phone number of the device running the Click to expand... You can use the Phone Library, I believe there is a property that will return the phone number, "GetLine1Number" i believe. Regards, Walter Upvote 0
Fayez Boulos said: Hi, Is there a way to capture the phone number of the device running the Click to expand... You can use the Phone Library, I believe there is a property that will return the phone number, "GetLine1Number" i believe. Regards, Walter
F Fayez Boulos Member Licensed User Mar 11, 2019 #4 Sorry Walter, It may be a shallow question, is there an example on how to use the phone library... what objects and methods it exposes?. Thanks Upvote 0
Sorry Walter, It may be a shallow question, is there an example on how to use the phone library... what objects and methods it exposes?. Thanks
walterf25 Expert Licensed User Longtime User Mar 11, 2019 #5 Fayez Boulos said: Sorry Walter, It may be a shallow question, is there an example on how to use the phone library... what objects and methods it exposes?. Thanks Click to expand... I'm sure there are tons of examples if you do a search for Phone library, I think this will work! B4X: Dim pID as PhoneID Dim phonenumber as String phonenumber = pID.GetLine1Number Log("My Phone Number is: " & phonenumber) Didn't test it as i'm on my mac right now. Walter Upvote 0
Fayez Boulos said: Sorry Walter, It may be a shallow question, is there an example on how to use the phone library... what objects and methods it exposes?. Thanks Click to expand... I'm sure there are tons of examples if you do a search for Phone library, I think this will work! B4X: Dim pID as PhoneID Dim phonenumber as String phonenumber = pID.GetLine1Number Log("My Phone Number is: " & phonenumber) Didn't test it as i'm on my mac right now. Walter
F Fayez Boulos Member Licensed User Mar 11, 2019 #6 Thanks Walter, I will search for phone library documentation. Thanks a lot Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 12, 2019 #7 You must request the READ_PHONE_STATE permission at runtime: Runtime Permissions (Android 6.0+ Permissions) Upvote 0
You must request the READ_PHONE_STATE permission at runtime: Runtime Permissions (Android 6.0+ Permissions)