是否可以使Android TV应用程序在Amazon Fire TV上运行? [英] Is it possible to make Android TV app work on Amazon Fire TV?

查看:152
本文介绍了是否可以使Android TV应用程序在Amazon Fire TV上运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于Android TV leanback库显然与Amazon Fire TV使用的SDK级别17兼容,因此我在Android TV应用程序中设置了最低SDK级别,并在Fire TV上使用ADB安装了它。它实际上没有任何问题。但是,它没有出现在设置的应用列表中,因此我只能通过ADB启动它。当我尝试在Amazon Developer控制台中进行Live App Test时,它甚至都不会安装。

Since the Android TV leanback library is apparently compatible with SDK level 17, which is what the Amazon Fire TV uses, I set the minimum SDK level on my Android TV app and installed it using ADB on my Fire TV. It actually works without any problems. However, it doesn't appear in the apps list in Settings, so I can only launch it through ADB. And when I tried to do a Live App Test in the Amazon Developer console, it won't even install.

是否有一些设置或我可以更改的设置可以进行工作正常吗?遗憾的是,由于它实际上可以工作,而且由于Amazon并没有提供与其等效的任何功能,因此无法使用leanback库。

Are there some settings or something I can change to make it work correctly? It would be a pity to not be able to use the leanback library since it does actually work, and since Amazon hasn't really provided anything equivalent to it.

推荐答案

绝对有可能。但是,您需要考虑一些事项。

It is definitely possible. However, there are a few things that you need to take into account.

首先,Fire TV不尊重 LEANBACK_LAUNCHER 意图过滤器,因此您需要使用标准的 LAUNCHER 之一。此外,在应用程序实际发布到亚马逊商店之前,您将无法在主屏幕上看到您的应用程序。

First of all, the Fire TV does not honor the LEANBACK_LAUNCHER intent filter, so you need to use the standard LAUNCHER one. Moreover, you won't be able to see your application in the home screen before the app is actually published in the Amazon Store.

除此之外,您不应该找到与Nexus Player的开发有很多不同。

Other than this, you should not find many differences from, say, developing for the Nexus Player.

这篇关于是否可以使Android TV应用程序在Amazon Fire TV上运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆