[android-developers] Re: how to get phone number through other method

2011-06-28 Thread Ellen
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

[android-developers] Re: how to get phone number

2011-06-28 Thread Ellen
hello, anybody here .. On 6月26日, 下午1时56分, Ellen ellen...@hotmail.com wrote: Dear Android Experts, I'm trying togetthe SIMnumberby TelephonyManager.getLine1Number(), permision has been set READ_PHONE_STATE. As many thread discussed before, it couldn't work in a real device due to the

[android-developers] Re: how to get phone number

2011-06-28 Thread Zsolt Vasvari
Creating more threads won't get you an answer faster -- quite the opposite. On Jun 28, 2:14 pm, Ellen ellen...@hotmail.com wrote: hello, anybody here .. On 6月26日, 下午1时56分, Ellen ellen...@hotmail.com wrote: Dear Android Experts, I'm trying togetthe SIMnumberby

[android-developers] Re: how to get phone number through other method

2011-06-28 Thread JAlexoid (Aleksandr Panzin)
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 ellen...@hotmail.com wrote: thanks for your reply! I have set the permission for READ_PHONE_STATE. it couldn't get the phone number, because the

[android-developers] Re: how to get phone number through other method

2011-06-28 Thread Zsolt Vasvari
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) jalex...@gmail.com wrote: In a lot of cases it's impossible to get the phone number. My phone certainly does not report

[android-developers] Re: how to get phone number through other method

2011-06-27 Thread Indicator Veritatis
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