Is there any way to get notified when known SSIS wifi networks get in/out of range?

前端 未结 1 1934
难免孤独
难免孤独 2020-12-30 07:15

I want to write an application which consists on perform actions when a known wifi networks get in or out of range.

For example, let\'s say my home wifi network\'s S

1条回答
  •  一整个雨季
    2020-12-30 07:40

    You should listen to broadcast event SCAN_RESULTS_AVAILABLE_ACTION. This will be sent each time Wi-Fi scan is finished. When such event occurs just re-iterate the scan results that can be obtained via WifiManager's getScanResults.

    When wi-fi is active, you'll receive this broadcast every several seconds. But there is no way to configure this interval and my guess is that each manufacturer may change this interval.

    You can manually trigger wi-fi scan using WifiManager's startScan.

    0 讨论(0)
提交回复
热议问题