0

Possible Duplicate:
Android - How to catch that the Home button was pressed?

Is there a way to stop going to the main screen when the HOME key is pressed?

Basically, I want to restrict the user to go out to the home screen when using my app, so I should restrict the HOME and BACK keys.

Community
  • 1
  • 1
Pocoyo
  • 55
  • 1
  • 3
  • 8

2 Answers2

3

Implement your own home screen. If the user elects to make your app be their home screen, you get control when the user presses HOME. You can see an example home screen application in the SDK samples, available for download from the SDK Manager.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
0

Here's a solution:

Intercept HOME key in Android

spartygw
  • 3,289
  • 2
  • 27
  • 51