0

I am trying to detect mobile number from device in android programmatically but not able to get mobile number. I have Google so much but not get proper method or code, I have used this line of code for it but it is not giving proper output-

 TelephonyManager tManager = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
                     mPhoneNumber = tManager.getLine1Number();

My question is:-

  1. Is is possible to detect mobile number programmatically in Android ? if yes please provide some method.

Please help me

thanks in advance

Ash
  • 671
  • 2
  • 7
  • 18

0 Answers0