Detect scan keypress on Android devices

I'm using TC20/MC3300 for an inventory app using EMDK for Android Studio. I've 2 EditText, Barcode & quantity. When bar code scanning is finished focus is changed to quantity. Now user can input some value, and/or just confirm ("1") with Enter key.

However I'd like use SCAN key as Enter on quantity field.

So, how to check if SCAN button is pressed or released on Android devices ?

Anonymous (not verified)
It would be better to use the

It would be better to use the PTT key (left side key below scan trigger) which has a default keycode of 284.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Kjell Lloyd
There is some undocumented

There is some undocumented Broadcast Intent you look into (I know it works on TC56, TC75x):

com.symbol.button.L1

com.symbol.button.L2

com.symbol.button.R2

and it looks like TC20 also is using these when I viewed the logcat.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments