1

Is there any way to retrieve a phone number in Android without using the TelephonyManager?

Because if the phone operator is blocking the number, then this solution fails. Solutions such as this one fails to retrieve the user's phone number: How to get phone number android phone?

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
Erik Borg
  • 11
  • 1
  • Implement OTP functionality. – VVB Apr 30 '15 at 11:44
  • Nope. Android does not allow to get phone number without permission and only way to get the number is Telephony Manager. – Muzaffer Apr 30 '15 at 11:44
  • Have a look [here](http://stackoverflow.com/questions/2480288/programmatically-obtain-the-phone-number-of-the-android-phone) – Sibo Apr 30 '15 at 11:50
  • 1
    @YourJavaMinion i think you didnt noticed he asked `without using the TelephonyManager?` – Murtaza Khursheed Hussain Apr 30 '15 at 12:00
  • Did you read all the answers? – Sibo Apr 30 '15 at 12:02
  • I feel this is a hack but if it suits your use case you can use the `send sms permission` and use the SmsManager API to send a message to predefined number where you can read the same. This is workaround for not using the telephony manager. – humblerookie Aug 18 '17 at 09:55

0 Answers0