I also have the same problem although my number is blank.
When I look at my phone number in the phone status settings, it is
also blank.

Does the Sum card have the phone number? and is Android failing to
read it properly?

Anyone know what is going on?

On Oct 23, 3:28 pm, Danny <[EMAIL PROTECTED]> wrote:
> I am trying to get the user'sphonenumber to use as UID and it seems
> to work in the emulator but not in the actual device, is it a bug or
> am I doing something wrong? My piece of code is here...
>
>                                 TelephonyManager mTelephonyMgr = 
> (TelephonyManager)
> getSystemService(Context.TELEPHONY_SERVICE);
>                                 String phoneNum = 
> mTelephonyMgr.getLine1Number();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to