Android broadcast receiver not working

前端 未结 4 858
庸人自扰
庸人自扰 2020-12-16 00:55

I try to get a broadcast receiver working. Should be as simple as possible, I have my manifest like this:


&l         


        
4条回答
  •  萌比男神i
    2020-12-16 01:45

    it is insufficient to make just new Intent();. You have to specify it with some action. Also, you have to specify in your manifest the intent filter for this particular action. Please read more here and here.

提交回复
热议问题