ConnectivityManager.CONNECTIVITY_ACTION, always broadcast when registering a receiver?

前端 未结 1 1330
温柔的废话
温柔的废话 2021-01-15 09:27

I\'m registering a receiver to capture the ConnectivityManager.CONNECTIVITY_ACTION in code i.e. I am not registering it in the application manifest. All is working

1条回答
  •  旧巷少年郎
    2021-01-15 09:52

    Yes, that's called sticky broadcasts. Sticky broadcasts are sent to receiver as soon as registerBroadcast is called.

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