Physical keypress monitor



Is there any way to monitor the physical keypress on an android device?
Im not refering to the standard buttons like back or home. If you see this (android device for barcode scanning) there is a yellow button that activates the scanner(or camera). I want to get the event on this key and open a specific task on the app.

Thank you


The link seems broken.


No its ok. It looks like an ad but its marked in a red square with red text


May be it took time to be available I guess. You may give it a try for KeyEvent callbacks,,%20android.view.KeyEvent)