FAQS


How to get phone number

Views: 3186  |   Date: 2013-08-05 11:14:11

How to get phone number in android program.

Answer 1

Call getSystemService() to get TELEPHONY_SERVICE handle.

  
        TelephonyManager tManager = (TelephonyManager) getBaseContext()
		.getSystemService(Context.TELEPHONY_SERVICE);
        
         String PhoneNumber  = tManager.getLine1Number();

 
Submit Your Answer
  |  
 
 
 

Preview :