How to control Home Button in Android?

后端 未结 3 1755
不知归路
不知归路 2021-01-25 09:52

I am in my application and I have control back button but I also want to control home button. I have written the code but I am unable to control HOME button. Here is my code.

3条回答
  •  不知归路
    2021-01-25 10:57

    As per Android core concepts, no application can alter the behaviour of the Home button.

    This you may not achieve what you're trying to do.

    EDIT

    You can try to code one Home Screen Launcher so that when user presses the home button, they can go to your Home Launcher.

提交回复
热议问题