Did you set the permission READ_PHONE_STATE?

On Jun 25, 4:14 am, "ellen...@hotmail.com" <ellen...@hotmail.com>
wrote:
> Dear Android experts,
>
> I'm trying to get the phone number through
> TelephonyManager.getLine1Number().
> As many threads discussed before, it couldn't work in a real device,
> null as the result.
>
> Now my question is, whether there is some other way to get the phone
> number?
>
> I searched one method said that it could send a sms to Internet
> Operator somewhere.
> 1. could you please provide the detail interface if it is a possible
> way?
> 2. And, is there any difference for the interface among different
> Internet Operator?
> 3. After sent the sms, where to get the phone number? please also
> provide the interface if possible.
>
> Looking for your response......

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to