Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to track the mobile number in android.?

user-image
Question added by Gobinath S
Date Posted: 2014/05/19
Deleted user
by Deleted user

The answers given by Henna Wadhwani and Mohammed Goma is technically correct, but practically in most cases this returns null as the operators not store the number in sim cards.

Mohammed Gomaa
by Mohammed Gomaa , Senior Mobile Developer , Smart Dubai Government

TelephonyManager tMgr =(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE);String mPhoneNumber = tMgr.getLine1Number();

Required Permission:

<uses-permissionandroid:name="android.permission.READ_PHONE_STATE"/>

Henna Wadhwani
by Henna Wadhwani , Application Implementation Engineer , Oberthur Technologies

TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE); String number = tm.getLine1Number();

Michael Jan Tranquilo
by Michael Jan Tranquilo , Customer Service Assistant , G4s - United Arab Emirates - Dubai airport

First tap on "settings" then select "About Device" then tap "status". There you will find the registered Carrier and also the registered phone number of the smartphone.

 

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.