Search code examples
androidandroid-launcherandroid-homebutton

How to set my App as default Home?


I'm developing a Android desktop app, and I would like that when it first starts it (confirm with user and) set itself as default action for Home button.

Currently, this option is given to the user by the Android system only when he first press the Home button after running my app.

Actually, I want the "back" button to not return to the default desktop, as my app will be the default desktop. Maybe the solution for this is the same of the one for the Home button?

Any idea how to do this?


Solution

  • You cannot do this.