I already try searching in this forum, and all solution told me to use phoneId to get the phone number. But it seem i can not use this solution.. maybe there is something wrong with my code..
B4X:
Sub Button1_Click
Dim ph As PhoneId
Dim phoneNumber As String
phoneNumber = ph.GetLine1Number
Label1.Text = phoneNumber
Please find attached picture.. from my debug that show the value is just empty.
Your help will be very appreciated.
Thanks and Regards
Hi,
Could the phone number not been returned only because the SIM card does not know it ? Some operators won't write the phone number into the SIM card.
Dear Don,
We are still trying to find alternative to getDeviceID and getLine1Number because there are some device which do not return correct value using these method..