BroadcastReceiver is not started after device boot

前端 未结 1 1992
日久生厌
日久生厌 2021-01-23 18:38

After device reboot, I want to run my receiver so that the device can play audio when the device screen is turned on or turned off without setting them manually through the app.

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-23 18:57

    Define your manifest something like this.

    
    
        
        
        
        
    
        
            
                
                    
                    
                
            
    
            
                
                    
    
                    
                
            
    
            
        
    
    
    

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