Why is my BroadCast Receiver not working?

前端 未结 6 926
礼貌的吻别
礼貌的吻别 2021-01-21 16:03

I am learning about BroadCast Receivers. What I am trying to achieve with the following piece of code is, I would like to see a toast when I switch to airplane mode, where the a

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-21 16:53

    You have to enable your broadcast in your manifest.xml file :

    
        
            
        
    
    

提交回复
热议问题