Some devices just do this, what device are you using?
Also, you should have the read phone state permission for this, though if you didn't have it the result should be a security exception rather than this null behavior (unless I'm forgetting that the api silently checks for the permission, however, I think this is not the case...) kris On Mon, Jan 2, 2012 at 6:13 AM, Upendra Reddy Vuyyuru <[email protected]> wrote: > Hi All, > > I am trying to fetch the telephone number of the device. I am calling > > TelephonyManager.getLine1Number() it always returns null. > > Thank you in advance.... > > Regards > Upendra Reddy.V > > -- > 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 -- 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

