Alex Rivera | Logout

Programmatically obtain the phone number of the Android phone

Asked 2010-03-19T20:09:38.300
504

How can I programmatically get the phone number of the device that is running my android app?

Edit
Report

1 Answer

0

Although it's possible to have multiple voicemail accounts, when calling from your own number, carriers route you to voicemail. So, TelephonyManager.getVoiceMailNumber() or TelephonyManager.getCompleteVoiceMailNumber(), depending on the flavor you need.

Hope this helps.

answered 2011-06-06T06:11:23.180

Your Answer