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 p
You can try:
TelephonyManager phoneManager = (TelephonyManager) getApplicationContext().getSystemService(Context.TELEPHONY_SERVICE); String phoneNumber = phoneManager.getLine1Number();
Needs READ_PHONE_STATE permission.
READ_PHONE_STATE