TelephonyManager tm = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE);
if(tm != null)
carrier = tm.getNetworkOperatorName();
Je veux juste obtenir le nom de l'opérateur réseau qui est appelé 'carrier'. Mais toujours revenir "" avec l'appareil Android 6. y-a-t'il une solution?Comment puis-je obtenir getNetworkOperatorName() avec android 6.x
Voir commentaire ici http://stackoverflow.com/questions/3838602/how-to-find-out-carriers-name-in-android#comment19751066_3838947 –
Quel appareil Android 6? Un émulateur? Il n'y a pas de support dans un émulateur, probablement –