2

我为 Android TV 开发了一个应用程序并发布了。我想知道有多少用户直接在他们的电视上运行该应用程序以及有多少使用电视盒。

有没有办法以编程方式检测我的应用程序是否在 Android TV 或 Android TV Box 上运行?

4

2 回答 2

2

getPackageManager().hasSystemFeature("android.software.live_tv")

于 2017-01-20T14:49:21.023 回答
0

Android TVs and Android TV Boxes are almost identical, at least from the applications point of view. They both identify themselves as having a tv characteristic, which you can get from system properties.

Usually, TV apps should not depend on whether they run on a TV or a box.

But if you feel you should really know, maybe you can tell the problem a bit in detail, and we can help you find the right solution.

于 2017-02-07T19:48:06.700 回答