Is it possible to make Android TV app work on Amazon Fire TV?

安稳与你 提交于 2019-11-30 07:28:42

问题


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.

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.


回答1:


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

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.

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




回答2:


Here's a topic from the Fire TV documentation that might be helpful: How Fire TV Development Differs from Android TV Development.



来源:https://stackoverflow.com/questions/27985239/is-it-possible-to-make-android-tv-app-work-on-amazon-fire-tv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!