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.