Make sure android tv program poster arts are visible from any tv launcher
I have to provide some images to the android tv launcher so that my programs are displayed correctly in the relative channel. The images are in the internal storage of the app and generated at runtime, for this reason i had to create my file provider:
and file_paths.xml
The following function in my app adds some programs to a channel:
private fun addProgramToChannel(context: Context, channelUri: Uri, card: CardItem) {
val posterFile = File(context.filesDir,...