Exactly.  The phone # is not used for routing calls, so it's not at
all surprising that the phone doesn't know its own number.

On Jun 28, 3:56 pm, "JAlexoid (Aleksandr Panzin)" <[email protected]>
wrote:
> In a lot of cases it's impossible to get the phone number. My phone
> certainly does not report any phone number (Nexus S)
>
> On Jun 28, 9:12 am, Ellen <[email protected]> wrote:
>
>
>
> > 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 <[email protected]> wrote:
>
> > > Did you set the permission READ_PHONE_STATE?
>
> > > On Jun 25, 4:14 am, "[email protected]" <[email protected]>
> > > 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......- 隐藏被引用文字 -
>
> > > - 显示引用的文字 -- Hide quoted text -
>
> - Show quoted text -

-- 
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