How to control Home Button in Android?

后端 未结 3 1793
不知归路
不知归路 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:55

    You cannot override the home key function, this functionality would allow an app to lock the user out of the phone.

提交回复
热议问题