Can someone help how to get data about owner of telephone. There is such information as phone number and e-mail. I know it is stored in AccountManager Api, but do not know the way how to get it.
The phone number you can get with this code snippet if it is stored in the SIM card:
Android.Telephony.TelephonyManager teleManager = (Android.Telephony.TelephonyManager) GetSystemService(Context.TelephonyService); button.Text = teleManager.Line1Number;
Almost forget. You need the ReadPhoneState permission.
Yes, but this do not work for all carriers. So I have found that there is accountmanager that contains also information about phone number. Do you know if it is possible to get it from there ?
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies