Replies: 18 comments
-
Please give more detail for what you mean by "working with channels". If you have links to Java code that do what you want to achieve, please provide them. Some assistance with converting to Delphi code might be given here |
Beta Was this translation helpful? Give feedback.
-
I decided anyway to do a little research into what you might mean. Are you referring to the TvInputManager and associated classes? It might help to know exactly what you want to do with it. Again, if you have links to Java examples, please provide them, indicating which parts are relevant. |
Beta Was this translation helpful? Give feedback.
-
I meant it: git: |
Beta Was this translation helpful? Give feedback.
-
This still does not tell me exactly what you want to achieve. That Kotlin example is quite extensive - if you want a complete Delphi equivalent it would take some time, and would be quite costly if you hired me to do it. |
Beta Was this translation helpful? Give feedback.
-
I just need to be able to place cards on the home screen in my app's feed. how YouTube shows video recommendations on the main screen. |
Beta Was this translation helpful? Give feedback.
-
I do have an Android TV, as well as being able to use an emulator
OK.. that gives me a better idea, thanks |
Beta Was this translation helpful? Give feedback.
-
I've done the first step, which is import the |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
Does it add a channel at all? Can you show the code that you tried? |
Beta Was this translation helpful? Give feedback.
-
Tell me, what emulator are you using, where is there full support for Android TV? |
Beta Was this translation helpful? Give feedback.
-
The emulator I use is from Android Studio, however I am running Android Studio on an M1 Mac (arm-based), and use an SSH tunnel to be able to set up a connection between Delphi and the emulator, which uses an arm64 image. The emulators in Android Studio for non-arm images are way too slow to work with, so that would probably not be suitable for you.
You mean you deleted all your code? |
Beta Was this translation helpful? Give feedback.
-
I poked around a little and settled on this for now:
I get ChannelId normally. |
Beta Was this translation helpful? Give feedback.
-
The code all looks like it should work - is the channel not appearing? |
Beta Was this translation helpful? Give feedback.
-
I've done a test myself, and there was a problem with the import unit, which I have now updated. I was unable to insert a program, though - it throws this error (in the logcat messages)
You might have more luck... |
Beta Was this translation helpful? Give feedback.
-
I added it to the manifest:
I also indicated the channel ID in the code:
as a result I get a ProgramUri but still nothing is displayed on the screen (: |
Beta Was this translation helpful? Give feedback.
-
Even with using setInputId on the channel builder, I get the same error as before when inserting a preview program. I might copy your code and play around with it... |
Beta Was this translation helpful? Give feedback.
-
I worked out what my problem was - I was using I've now published a demo in the HowTo repo of my work so far. |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
-
Does anyone have experience working with channels on the main screen of Android TV? show how it's done in Delphi. I'm not very good with Java.
Beta Was this translation helpful? Give feedback.
All reactions