Android kill background application from our application programmatically

前端 未结 3 686
日久生厌
日久生厌 2021-02-06 18:59

My requirement forces me to kill another apps from my developed application.

Details: My requirement is how to kill all background running application from currently de

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-06 19:44

    We cannot actually kill all the background apps . However, we can kill our own app from recents by calling finishAndRemoveTask() which is available from lollipop.

    Another Solution is we can use android:excludeFromRecents in activity in the manifest file

提交回复
热议问题