How to detect when WIFI Connection has been established in Android?

前端 未结 13 745
庸人自扰
庸人自扰 2020-11-22 05:34

I need to detect when I have network connectivity over WIFI. What broadcast is sent to establish that a valid network connection has been made. I need to validate that a v

13条回答
  •  后悔当初
    2020-11-22 06:13

    For all those who enjoying CONNECTIVITY_CHANGE broadcast, please note this is no more fired when app is in background in Android O.

    https://developer.android.com/about/versions/o/background.html

提交回复
热议问题