Start application without activity, my Broadcast Receiver not work

后端 未结 5 1103
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-19 13:14

In my app, I have a Broadcast Receiver for catching the message sent to my phone



        
5条回答
  •  萌比男神i
    2020-12-19 13:37

    For Android 3.1 and higher,

    You have to launch one of your activities before any manifest-registered BroadcastReceiver will work.

    See developer docs specifically the section -

    Launch controls on stopped applications for android-3.1

提交回复
热议问题