My BroadcastReceiver is not receiving the BOOT_COMPLETED intent after my N1 boots

前端 未结 2 415
迷失自我
迷失自我 2020-12-10 17:06

I am unable to get my BroadcastReceiver onReceive method called using the BOOT_COMPLETED intent.

AndroidManifest.xml



        
2条回答
  •  温柔的废话
    2020-12-10 17:39

    EDIT: Forget everything, I've found a better explanation.

    You have to define your receiver with exported = true and enabled = true

    
    

    I think that if you change this line

    
    

    for this

    
    

    it will fix your problem.

    I tried it on one of my projects and it didn't start.

提交回复
热议问题