Finishing an Activity from a Broadcast Receiver

前端 未结 5 1769
夕颜
夕颜 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:42

    I actually ended up adding a PhoneStateListener in the Activity to listen for IDLE_STATE.

提交回复
热议问题