You need the permission READ_PHONE_STATE, then use TelephonyManager.getDefault() to get hold of the TelephonyManager. On the returned instance call mgr.getLine1Number() and there it is :)
Cheers -Huebi On 19 Aug., 07:30, j <[EMAIL PROTECTED]> wrote: > How do I get the user's phone number in 0.9 beta SDK? --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---