GetLine1Number returns null, but not always

I use TelephonyManager to get a phone number, everything works fine in the SDK, on ​​some devices like my hero with 1.5, it returns null, in a tattoo with 1.6 it works, but on some other tattoos it returns null.
Is there any other way to get a phone number?

+2
source share
3 answers

As far as I know, the returned phone number is what is stored on the MSISDN SIM card, which is not populated by some operators. (Worse, according to some reports, the number may indeed be incorrect!)

Unfortunately, I do not know another method.

+6
source

I searched a lot for this problem and did not find any solution. There is a solution for reading SMS or sending SMS from any server.

+3
source

The solution is to put the SIM card in a mute phone (or any Blackberry before 2009) and install MSISDN. I think that with Blackberries you can manually install them.

Try typing ## 000000 with the radio turned off and edit the first line in the menu that appears on the Blackberry.

0
source

All Articles