How to find the phone number in android?

aptgopal

New member
Dec 7, 2010
0
0
0
Visit site
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
 

takeshi

Well-known member
Jan 27, 2010
968
30
0
Visit site
Development questions are best served in development forums. This is a forum for users of Android applications.
 

Forum statistics

Threads
943,870
Messages
6,920,390
Members
3,159,266
Latest member
caroltheresa61