Hello everyone, I'm planning to create a simple app for Android TV. I don't have the TV yet but I want to ask here first before buying and please do share your experiences. Any input are much appreciated.
How did you manage to show Android TV (like on the Sony Android 4K TVs) home screen shortcuts/icons?
I cannot find any B4A code sample or instructions.
After installing my apps, they will show only when using a file manager, but the home screen Icon does not show. As I understand, the shortcuts are made of two images, perhaps it even has to have it's own activity in the code...
I tried following the instructions (and here) on Google... but, unfortunately, I do not speak Java. I cannot do the conversion to the B4A language. Also, there are some libraries that only exist on Java for the "Leanback" theme which the TVs use...
I've made the banner, but the activity code in Google is for Java, bringing it to B4A without conversion/translation issues errors.
Please accept my apologies, but I'm new to programming...
Check the attached sample, pay attention to the Manifest entries.
You also need to create a "banner" (you will find that in the "\Objects\res\drawable" directory, it has to be that specific size and set as read only).
I am absolutely sure that I am missing something... I am absolutely confident hat it is not you code sir. I just would love to know what I am missing...
Well, don't know what to say, I even downloaded the sample I posted and it works. You are not missing anything, as you can see that code is super simple and I wrote that example from scratch.
1. In the B4A main window, go to "Tool", then "Configure Paths"
2. In the section "android.jar" (depending on where you installed it, but here is where I have it) make sure you change the android.jar version to 22 or newer if available:
I originally had version 17: C:\Program Files (x86)\Android\android-sdk\platforms\android-17\android.jar and as you know, it was old and had no support for Android TVs.
I knew it had to be on my side, the error that is.
Thank you. Thank you. Thank you. Thank you.
I hope you also get what I sent you... through the other channel...