• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How to find the phone number in android?

aptgopal

Newbie
Hi
Any one help me to do this .I want to find the mobile number using in the particular android mobile programmatically

I tried the following
TelephonyManager tMgr =(TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
String mPhoneNumber = tMgr.getLine1Number();
It is working fine in Emulator but It is not working in my phone

How to do that

Thanks in advance
 
Back
Top Bottom