Restrict Broadcast Receiver to application

前端 未结 3 1712
无人及你
无人及你 2021-01-14 21:51

I am working on broadcast receiver and stuck in a problem.

I am receiving a broadcast receiver in Manifest file.



        
3条回答
  •  温柔的废话
    2021-01-14 22:22

    The question was asked a long time ago but in case some one landed on this page while searching, It is possible to register and unregister broadcast receiver from code instead of doing that from manifest file. (Checking the Networking Connectivity using BroadcastReceiver in Android)

提交回复
热议问题