BroadcastReceiver declared in manifest is not receiving the Broadcast

前端 未结 7 1883
余生分开走
余生分开走 2020-12-30 04:30

I\'ve tried to register a Wifi BroadcastReceiver to get the wifi state when it changes. But so far I have no luck receiving the broadcast.



        
相关标签:
7条回答
  • 2020-12-30 05:07

    This is all broadcast receiver related to the internet connection

    <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
    <action android:name="android.net.wifi.WIFI_STATE_CHANGED" />                
    <action android:name="android.net.wifi.STATE_CHANGE" />
    
    0 讨论(0)
提交回复
热议问题