I tried googling in google but unable to find the answer
Will anyone please let me know, how can i retrieve the current phone number from the android code. I think phone number will be stored in the sim card.
Thanks & Regards, SSuman185
I tried googling in google but unable to find the answer
Will anyone please let me know, how can i retrieve the current phone number from the android code. I think phone number will be stored in the sim card.
Thanks & Regards, SSuman185
You can try:
TelephonyManager phoneManager = (TelephonyManager)
getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE);
String phoneNumber = phoneManager.getLine1Number();
Needs READ_PHONE_STATE
permission.