Android: How to Get Gsm Signal Strength for All Available Network Operators

how to get a list of available gsm networks?

Every operator has a unique ID, a 5 digit number called PLMN (Public land mobile network).

That number consists of a 3-digit MCC (Mobile Country Code) followed by a 2-digit MNC (Mobile Network Code).

The wikipedia list is a relatively complete list.

How to get current cell signal strength?

There is getAllCellInfo() method in TelephonyManager added in API 17 that could be good solution. Example of use:

TelephonyManager telephonyManager = (TelephonyManager)this.getSystemService(Context.TELEPHONY_SERVICE);
// for example value of first element
CellInfoGsm cellInfoGsm = (CellInfoGsm)telephonyManager.getAllCellInfo().get(0);
CellSignalStrengthGsm cellSignalStrengthGsm = cellInfoGsm.getCellSignalStrength();
cellSignalStrengthGsm.getDbm();


Related Topics



Leave a reply



Submit