I'm a newbie to android and i'm trying to make an app that respond to a hardware input like camera button, handsfree call answer button,etc.
For example take camera button. When it is pressed the default camera app is launched. What I want to do is prevent that default response and make my app respond to that. I know it is possible to replace the camera app but thats not what i expect.
When the button is pressed, my app should run first and my app will direct to the camera app once my app is done. If this is possible please point me in the right direction