V
V
Vladislav Yaroslavlev2014-08-28 11:30:52
Android
Vladislav Yaroslavlev, 2014-08-28 11:30:52

Is it possible to intercept an input event without an input field and an open soft keyboard?

Is it possible to somehow catch the text input message if there is no EditText (text input field) on the screen in the application and the soft keyboard is not open?
Android 4.1.2
PS. I will explain why this is needed: there is a Motorola TC55 device (a data collection terminal, a smartphone on Android 4.1.2 with a barcode reader (laser)), which has a scan button on its left side, after pressing it, the scanner laser turns on, after reading the barcode characters from the read barcode are programmatically pressed. And at its core, it's just a keyboard emulator.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
art090390, 2014-09-01
@art090390

Both the Activity and View class implement the KeyEvent.Callback interface, so you should generally override the callback methods in your extension of these classes as appropriate.
https://developer.android.com/training/keyboard-in...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question