Close all running activities in an android application?

后端 未结 11 1747
死守一世寂寞
死守一世寂寞 2020-12-11 19:19

I create one application and never use finish() for each activity. If my user clicks on the logout button it goes to the previous page.

How can I close my previous

11条回答
  •  借酒劲吻你
    2020-12-11 19:55

    use finish() for each activity

    1) Activity lifecycle

    2) Shutting down Activity and managing Activities lifecycle

    3) The same question answered in detail (2 approaches - Broadcast Receiver (+1) and Intent.FLAG_ACTIVITY_CLEAR_TOP)

提交回复
热议问题