简体   繁体   中英

Android intercept/disable recent apps button

I am trying to create a kiosk type app so when you press the recent apps button I dont want the user to be able to go to a different app. I have been googling around but cannot find anything on this matter. There is this solution in this thread Recent apps button in android

However this does not seem to work for me on Android 6.0

Can someone please point me to the right direction on how to do this? Thanks

In the link you provided yourself can find the answer:

Is that possible to override recent apps button in android? Not from an ordinary SDK app.

You are welcome to build your own custom ROM that modifies the overview screen, then convince people to install your custom ROM on their devices.

So your answer is no in the app written by Google provided SDKs.

It is not possible. You can not control recent app AND home button in Android. You can't allow user to not leave the app. It is user's choice.

Edit: The only way you will be able to control those buttons is if you have system level permissions. To have system level permission for the device, you have to have system certificates and you won't have that unless you created the Android ROM on the device.

there's a app called "All in one Gestures" that can make the physical recent apps button without blocking some alternate way to trigger recent apps (like assistant menu in accessibility settings), i'm not the developer of that app but using APK editor, i see that the app are using accessibility service

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM