Danny wrote: > I am trying to get the user's phone number to use as UID and it seems > to work in the emulator but not in the actual device, is it a bug or > am I doing something wrong? My piece of code is here... > > TelephonyManager mTelephonyMgr = > (TelephonyManager) > getSystemService(Context.TELEPHONY_SERVICE); > String phoneNum = > mTelephonyMgr.getLine1Number();
Are you sure you have the proper permission? I would think you have to if it works in the emulator, but I figured I'd mention it. BTW, if you want a device ID, Settings.System.ANDROID_ID is a unique value on devices, but null in emulators. -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.3 Published! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

