Android Question Activity_KeyPress on Android TV Box with remote control?

Watchkido1

Active Member
Licensed User
Longtime User
I have a "Bqeel Android TV Box 4K Smart TV Box with 4G RAM + 32G ROM, Android 10"
I would like to control my own software with the associated remote control.
First and foremost, I would like to use the "up, down, left, right, ok" keys, if possible also the keys 0-9.
1. How do you intercept these remote control buttons?
2. "Right, left, up, down, ok" works, but in an order I don't understand. How can I put them in the right order?
I have 5 "zones" that I need to get into:

Drawer left with list view
Tab1 with list view
Tab2
Tab3 with CustomListView
Drawer on the right with list view



Thanks
 

Attachments

  • MAMA230813.zip
    22 KB · Views: 84
Last edited:

MicroDrie

Well-Known Member
Licensed User
A remote control usually works on the basis of an infrared transmitter that emits an infrared beam on which a code is modulated. and that is something that an Android phone or tablet usually does not have.
If you can install APPs on your Android smartbox, you can consider installing KODI. There is also an Android KODI library for B4A with which you may be able to realize the solution you want.
 
Upvote 0

teddybear

Well-Known Member
Licensed User
I have a "Bqeel Android TV Box 4K Smart TV Box with 4G RAM + 32G ROM, Android 10"
I would like to control my own software with the associated remote control.
First and foremost, I would like to use the "up, down, left, right, ok" keys, if possible also the keys 0-9.
1. How do you intercept these remote control buttons?
2. "Right, left, up, down, ok" works, but in an order I don't understand. How can I put them in the right order?
I have 5 "zones" that I need to get into:

Drawer left with list view
Tab1 with list view
Tab2
Tab3 with CustomListView
Drawer on the right with list view



Thanks
You can capture the keycode in Activity_KeyPress,
They are defined in constants key codes, such as keycodes.KEYCODE_0..9 etc
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
You can capture the keycode in Activity_KeyPress,
They are defined in constants key codes, such as keycodes.KEYCODE_0..9 etc
A key scan code is nice to know, but then you have to capture that code somewhere in the Bqeel Android TV Box, which is only possible after you fully know how the Bqeel Android TV Box works and can patch or hack it. I was able to control Kodi on my Nokia 8000 media box as a multi media server from multiple phones and tablets. In addition, there is a good support forum for Kodi issues which cannot be used for the hack attempt on the Bqeel Android TV Box.šŸ˜†
 
Upvote 0
Top