Frage

I am trying to get a list of signal strength (both cellular and wifi) in an android device. Do i achieve this using the Signal Strength class ?http://developer.android.com/reference/android/telephony/SignalStrength.html

War es hilfreich?

Lösung

For WiFi, you'll want to use the WifiManager class and call the getScanResults() function.

For cellular, you'll want to create a PhoneStateListener and handle the onSignalStengthChanged event.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top