• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps how to change the home, back, windows button in Android cellphone

I'm working on an app, and I'm trying to change the behavior of the three main buttons of an android cellphone. While my app is running. Is there a method or a function to do that because I search the internet, but not sure what write to find my answer. So any help will be great.

Thank you,
 
You can change behavior of buttons back and windows, when your activity in foreground. This can be done in Activity methods - onKeyDown, onKeyUp
Home behavior can be changed, if user set your activity as Home activity. Then your Activity shown on home keydown, and you can do something, what you want.
Also there has another ways. But which app you want?
 
You can change behavior of buttons back and windows, when your activity in foreground. This can be done in Activity methods - onKeyDown, onKeyUp
Home behavior can be changed, if user set your activity as Home activity. Then your Activity shown on home keydown, and you can do something, what you want.
Also there has another ways. But which app you want?

I really appreciate your help. But if you could refer me to how can I use onKeyDown, onKeyUp that will help a lot. Also what if I want when my app is running to force Home button to use my app activity as a home screen, and when user close the app the behavior of the home button return to its default ?
 
Back
Top Bottom