Finishing an Activity from a Broadcast Receiver

前端 未结 5 1768
夕颜
夕颜 2020-12-01 18:49

I have an Activity that I display as modeless when the phone rings (over the phone app). I would like to finish the Activity when either of the following events occur. The f

5条回答
  •  半阙折子戏
    2020-12-01 19:25

    What if you register another broadcast receiver from the activity. Then, when you want to kill it, send a broadcast message from the broadcast receiver that you mentioned.

提交回复
热议问题