I am working with a Motorola Droid. I can see there is a side button which launches the camera.
In my app, I use a button which when pressed, allows the user to talk – like in a walkie-talkie i.e it is a push-to-talk button.
How do I use the side button to work like this button? i.e use it as a push-to-talk button.
Any help would be appreciated.
Thanks
Your activity can override
onKeyDown()and watch forKEYCODE_CAMERAKeyEvents: