In my project, I need to take the phone number, that i am doing Using
Following code:-

     TelephonyManager telephonyManager = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);
  telephonyManager.getLine1Number();

The last line suppose to return phone number. But its returning anything. I
checked in setting>about phone>      and there also my Phone number is
"unknown".

can anyone tell how to fix this problem.

-- 
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

Reply via email to