Android receiver for multiple actions?

前端 未结 4 2082
我在风中等你
我在风中等你 2021-02-19 10:36

Simple question - Can I register a single BroadcastReceiver to multiple Intent actions? Here\'s what I\'m considering:



        
4条回答
  •  感情败类
    2021-02-19 11:16

    Yes, you can have multiple actions for the same BroadcastReceiver. In fact, what you did is just correct:

    
         
             
             
         
    
    

    I have already used this approach in a project and it worked.

提交回复
热议问题