Android Tvbox and infrared remote
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Android Tvbox and infrared remote
Hello.
I have a standalone on an Android 11 TvBox (TOX3lite).
If my script opens an Answer dialog (with the usual "OK" or "Cancel"), I am able, using the infrared remote control wheel (up,down, left, right, OK), to move between the 2 buttons and select them, closing in this way the answer dialog!
Any other LC native or not buttons, or fields, or widget fields or else, don't react to the command sent from the infrared remote.
How come?
What makes the ask and answer dialogs so different?
How can I select a text input field using the remote?
Thanks
Trevix
I have a standalone on an Android 11 TvBox (TOX3lite).
If my script opens an Answer dialog (with the usual "OK" or "Cancel"), I am able, using the infrared remote control wheel (up,down, left, right, OK), to move between the 2 buttons and select them, closing in this way the answer dialog!
Any other LC native or not buttons, or fields, or widget fields or else, don't react to the command sent from the infrared remote.
How come?
What makes the ask and answer dialogs so different?
How can I select a text input field using the remote?
Thanks
Trevix
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- VIP Livecode Opensource Backer
- Posts: 7258
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Android Tvbox and infrared remote
I don't know the answer but I'm curious how you got the app into the TV box. I have a chromecast with Google TV and there are only a few apps available.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Android Tvbox and infrared remote
I installed my standalone on several TvBoxes, using ADB with a USB cable or, if this does not work, using the app "x-ploreFileManager" and getting the APK from google drive.
I don't think that chromecast allow this, but you try.
Regards
I don't think that chromecast allow this, but you try.
Regards
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- VIP Livecode Opensource Backer
- Posts: 7258
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: Android Tvbox and infrared remote
Thanks. You're right, Chromecast can't use ADB. There are third-party sideloading apps but they only connect to the Play Store.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Android Tvbox and infrared remote
No answers yet, but I just had a revelation:
The answer/ask dialogs are listed in the "inclusion" of the standalone settings.
So, my guess, they have code (lcb? C+?) beside what can be seen inside the "Answer Dialog" stack, enabling the LiveCode UI view.
This code probably is what enables the interaction of the infrared with the dialog buttons.
I know so little about how the infrared controls interact with the OS.
Any light?
The answer/ask dialogs are listed in the "inclusion" of the standalone settings.
So, my guess, they have code (lcb? C+?) beside what can be seen inside the "Answer Dialog" stack, enabling the LiveCode UI view.
This code probably is what enables the interaction of the infrared with the dialog buttons.
I know so little about how the infrared controls interact with the OS.
Any light?
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
Re: Android Tvbox and infrared remote
I have no real clue, but as a trial maybe you could test opening a substack as a modal or palette or play about with window modes, just to see what you get.
Re: Android Tvbox and infrared remote
Done: doesn't work
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
-
- Posts: 641
- Joined: Tue Jul 29, 2014 12:52 am
- Location: Brazil
Re: Android Tvbox and infrared remote
According to the dictionary both Modal and Palette are available for mac, windows, linux and the issue being explored is about Android so I guess none of them will make any difference, I've already quickly tried both options and indeed they don't.
Just wondering if there is something else that could be tried...
Regards
Just wondering if there is something else that could be tried...
Regards
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
Re: Android Tvbox and infrared remote
I'm still just guessing, but I "guess" the answer dialog is a call to system native API leaving the OS to render the display.
Is the problem the same with native controls created on the fly with mobileControlCreate... ?
Is the problem the same with native controls created on the fly with mobileControlCreate... ?
Re: Android Tvbox and infrared remote
Yes: no MobileControl created responds to the infrared
I am talking of buttons, off course. Like it happens on the answer dialog, where you can navigate between the cancel and ok buttons using left and right on the remote.
You can type into mobile control created fields (the keyboard appears) but you cannot navigate from field to field.
I am wondering what can reach LC from the OS that receive some signal from the infrared remote. It's a mystery.
I am talking of buttons, off course. Like it happens on the answer dialog, where you can navigate between the cancel and ok buttons using left and right on the remote.
You can type into mobile control created fields (the keyboard appears) but you cannot navigate from field to field.
I am wondering what can reach LC from the OS that receive some signal from the infrared remote. It's a mystery.
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>