Physical keypress monitor

android

#1

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 http://prntscr.com/is4kxv (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


#2

The link seems broken.


#3

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


#4

May be it took time to be available I guess. You may give it a try for KeyEvent callbacks,

https://developer.android.com/reference/android/view/KeyEvent.Callback.html#onKeyDown(int,%20android.view.KeyEvent)