2013-01-14

Android get network operator

You can get operator name by query TelephonyManager
For example:


TelephonyManager manager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE));
String currentCarrierID = manager.getNetworkOperator();
String simCarrierID = manager.getSimOperator();
String currentCarrierName = manager.getNetworkOperatorName();
String simCarrierName = manager.getSimOperatorName();


Please refer to http://developer.android.com/reference/android/telephony/TelephonyManager.html#getNetworkOperator()

No comments: