fifix Posted May 27, 2011 Share Posted May 27, 2011 Bonjour, je fait une application android et je souhaite obtenir un numéro qui est propre au téléphone. Par exemple le numéro de téléphone ou autre un autre numéro unique. Comme par exemple sur un ordinateur nous avons l'adresse mac. Voilà donc si quelqu'un connais petit script pour ça. Cordialement fifix Link to comment Share on other sites More sharing options...
Mc Flurry Posted May 27, 2011 Share Posted May 27, 2011 Salut, TelephonyManager tMgr =(TelephonyManager)mAppContext.getSystemService(Context.TELEPHONY_SERVICE); mPhoneNumber = tMgr.getLine1Number(); Il faut ajouter la permission READ_PHONE_STATE au manifest Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.