4

How can I determine the phone's voicemail number in Android code?

Carl Manaster
  • 39,912
  • 17
  • 102
  • 155

2 Answers2

4

You can use getVoiceMailNumber() in the TelephonyManager class, please note that this may not work with all cell phone providers:

Android TelephonyManager

nickfox
  • 2,835
  • 1
  • 26
  • 31
3

Call getVoiceMailNumber() on the TelephonyManager.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491