How to be notified on wifi network status change?

前端 未结 4 1632
醉梦人生
醉梦人生 2020-11-29 02:16

I am writing an app that connects to a telnet server via wifi. I have a service that manages the socket connection. It all works fine, but when the phone sleeps it disconn

4条回答
  •  眼角桃花
    2020-11-29 03:15

    I know this is an old question but see the following developer documentation:

    http://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html

提交回复
热议问题