Android receiver for multiple actions?

前端 未结 4 2067
我在风中等你
我在风中等你 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:17

    I guess you can have multiple s each one having its action element.

    
         
             
         
    
         
             
         
    
    

    And then check the Intent's action in the onReceive of the receiver.

提交回复
热议问题