Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

How to track the mobile number in android.?

user-image
Question ajoutée par Gobinath S
Date de publication: 2014/05/19
Utilisateur supprimé
par Utilisateur supprimé

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
par 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
par Henna Wadhwani , Application Implementation Engineer , Oberthur Technologies

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

Michael Jan Tranquilo
par 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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?