Skip to content Skip to sidebar Skip to footer

Android - Is It Possible To Disable The Long Click Of Home Button To Avoid The Task Manager?

I am looking for a way to disable the task manager window once I long press on the home button. I managed to disable other device keys (such as volume, menu etc) and the normal cli

Solution 1:

To avoid the recent app dialog on the long click home button, you can listen on focus of your activity. When your activity is loosing focus, fire an Intent.ACTION_CLOSE_SYSTEM_DIALOGS intent.

Sample code here: http://www.juliencavandoli.com/how-to-disable-recent-apps-dialog-on-long-press-home-button/

I hope this will help you :)

Post a Comment for "Android - Is It Possible To Disable The Long Click Of Home Button To Avoid The Task Manager?"