Get Signal Strength in Android

Define Variables: TelephonyManager mTelephonyManager; MyPhoneStateListener mPhoneStatelistener; int mSignalStrength = 0; Then add this class to your code: class MyPhoneStateListener extends PhoneStateListener { @Override public void onSignalStrengthsChanged(SignalStrength signalStrength) { super.onSignalStrengthsChanged(signalStrength); mSignalStrength = signalStrength.getGsmSignalStrength(); mSignalStrength = (2 * mSignalStrength) – 113; // -> dBm } } and in your onCreate method use: mPhoneStatelistener = new MyPhoneStateListener(); mTelephonyManager … Read more

Android: How do I get GSM signal strength for all available network operators

Maybe these quotes and links can help you code your own solution: 1.- To get a list of available network providers (quoting How to get a list of available network providers? in full): Since Android is open source I had a look at the sources and finally found something called INetworkQueryService. I guess you can … Read more

How to calculate distance from Wifi router using Signal Strength?

FSPL depends on two parameters: First is the frequency of radio signals;Second is the wireless transmission distance. The following formula can reflect the relationship between them. FSPL (dB) = 20log10(d) + 20log10(f) + K d = distance f = frequency K= constant that depends on the units used for d and f If d is … Read more