maybe I was not clear enough, the USB connection is fine, it works like a keyboard for he Box.
However I need to get that typing, what I can do using a EditText, however I experimented before that focus control is somewhat strange, and things like an <enter> could open the app drawer menu for exemple.
I wonder if there is a different approach to catch the keyboard
How to do that? never found a way to impede that the focus move to the drawer....
I have this problem in another app that I use the <enter> key as a way to remove cards from the screen. In some Android Boxs it leads to focus the drawer (the 3 dots on the top right) and open it.
But in some other boxes it just work as expected.
I am intercepting using the Activity_KeyPress and returning true consuming the event.
I could use Activity_KeyPress to get the events for the data from the barcode instead of a edittext, not sure what is best
How to do that? never found a way to impede that the focus move to the drawer....
I have this problem in another app that I use the <enter> key as a way to remove cards from the screen. In some Android Boxs it leads to focus the drawer (the 3 dots on the top right) and open it.
But in some other boxes it just work as expected.
I am intercepting using the Activity_KeyPress and returning true consuming the event.
I could use Activity_KeyPress to get the events for the data from the barcode instead of a edittext, not sure what is best
What you mentioned won't help you get any answer. You are giving a very vague information. There are too much possibilities and factors causing the problem.
Can you be more specific? What are the TV box models you are using and the Android versions, which work, which does not. What model of USB scanner?
Maybe someone else having the same model and can test for you.
Can you provide the link of the tutorial for the navigation drawer where you copy the code from?
Upload a small project and show what you have done.