Disable recent tasks button on Android 5.0

后端 未结 2 1268
广开言路
广开言路 2021-01-23 14:04

I am working on an application that needs to suppress the recent apps button as it is done in the Toddler Lock application. What I want is user should not be able to exit my app

2条回答
  •  隐瞒了意图╮
    2021-01-23 14:36

    You have to write a service which will continuously monitor the top activity. If the top activity is from the package com.android.systemui means the user pressed the recent apps button. So at this time you have maintain the top activity from your application and start the same activity again.

提交回复
热议问题