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
969
30
0
Visit site
Development questions are best served in development forums. This is a forum for users of Android applications.
 

Trending Posts

Forum statistics

Threads
942,118
Messages
6,912,537
Members
3,158,237
Latest member
Landers2