Bobbie The IMSI number might be a viable alternative depending on what your needs are (obtained via TelephonyManager.getSubscriberId())?
There are various things cellular providers do upstream from the 'phone which mean that the SIM phone number information may incorrect, but the IMSI number will usually identify the SIM card in the phone so if the SIM is swapped with another one your app can detect it. Al. -- * Written an Android App? - List it at http://andappstore.com/ * ====== Funky Android Limited is registered in England & Wales with the company number 6741909. The registered head office is Kemp House, 152-160 City Road, London, EC1V 2NX, UK. The views expressed in this email are those of the author and not necessarily those of Funky Android Limited, it's associates, or it's subsidiaries. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Mark Murphy Sent: 01 June 2009 11:49 To: [email protected] Subject: [android-developers] Re: HTC Ion Problem Bobbie wrote: > I got back from Google I/O 2009 with the "HTC Ion" phone that they > gave out to everyone. The phone was given to us fully unlocked, so I > am using it on Centennial Wireless' network. In the system settings > though it says my phone number is "unknown" but I can make and receive > calls without any problems. The issue I'm running into is that I > can't get the user's phone number without this data. Anyone have any > suggestions on how to remedy this problem? You can't. My Ion shows the same thing. More importantly, though, my retail-purchased G1 shows the phone number originally associated with the SIM, before my existing T-Mobile number was ported to this account. Hence, the number the SIM reports to Android is incorrect. For any given device, given enough fussing, you can probably score a SIM that reports the proper number. Generically, though, you cannot assume the SIM-reported number is indeed accurate. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Need help for your Android OSS project? http://wiki.andmob.org/hado --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

