Android Question Key Down Event?

yudinvs

New Member
Hi all

Please help
I use software triggers to control Zebra Barcode Reader.

i try to use Key_Down|Key_UP

B4X:
Private Sub Activity_KeyUp (KeyCode As Int) As Boolean
   
   
    Return False
   
End Sub

it works, but then key press,.

Now i need to turn it off on scan key Released, but no event raised

B4X:
Private Sub Activity_KeyDown (KeyCode As Int) As Boolean
   
    Return False
End Sub

But Key Up Raises at key press, not release

Key_Down not Raises.

How to catch key down and key up events?
 
Last edited:

ilan

Expert
Licensed User
Longtime User
Upvote 0

yudinvs

New Member
Sorry for my poor english, perhaps I wrote it wrong.

I need to get evet at Key press and Key Release.

At key press i want to turn barcode reader on, on Key Release turn off. Key code is same, but different events.
 
Upvote 0

yudinvs

New Member
My terminal has physical keyboard, physical scan key. Built in application ScanDemo or DataWedge can control reader on|off at key press/ key release
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…