As far as I have ascertained, this issue is not an Android issue, it has to
do with the Sim and access to the Sim given to Android by the provider.
So basically, if you get a Null its because the phone doesn't know its own
phone number, and you have to ask the user, or does some work around,
I am also having the same problem.
String MSISDN = ((TelephonyManager)
this.getSystemService(this.TELEPHONY_SERVICE)).getLine1Number();
returns null.
is there any way i can get MSISDN?
can i get it by sms?
On Wed, Sep 23, 2009 at 6:15 AM, an0 an0...@gmail.com wrote:
I've the same
Hi Roman,
Thanks for your Response!
I am using a HTC Hero in Spain, using Yoigo Network.
I checked the settings and the Voice MSISDN Line1 number is indeed
unknown, so I guess thats why I am receiving a null value for the
phone number.
I will be testing with a US Sim (as soon as I received
Your code looks fine to me.
Could you check whether this.telMgr.getLine1Number() returns null ?
Also verify the setting application (go to about phone -- status --
phone number). You should be able to see your phone number.
In cases where you have the radio switched off you cannot read the
4 matches
Mail list logo