I'm working on a Home Screen replacement app. I have an activity set as default and I want to override (in a sense) what happens when the Home button is double tapped. So far I have code in the onResume()
method of the Home activity that detects if the Home button was tapped twice in quick succession. So essentially, I have code that I can run if the Home button is double tapped.
The problem is that on top of my code, there is an app that the user can set in settings that launches when the Home button is double tapped. So both my code is run AND this app is launched. It seems that there is no way to override the system double tap of the Home button (from what I've read on SO), but is there a way to bring up the chooser dialog wherein the user selects the app to launch upon double tap, and prompt him to select "None"? Or something akin to that where the user is brought to his own Settings and urged to change them?
EDIT: Alternatively, if I CAN override the double tap of the Home Button (something I maybe missed on SO) to do nothing while my activity is running, how can that be done?