thanks for your reply!

I have set the permission for READ_PHONE_STATE.

it couldn't get the phone number, because the Internet Operator didn't
store this info to SIM card, and TelephonyManager.getLine1Number()
seems only could read phone number from the SIM card :(

So, any other ideas?


On 6月28日, 上午8时13分, Indicator Veritatis <mej1...@yahoo.com> wrote:
> 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 togetthephonenumberthrough
> > 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 togetthephone
> >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 togetthephonenumber? 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