【发布时间】:2020-11-04 14:13:36
【问题描述】:
我申请了following to distinguish between normal Android OS and Android TV:
if (pm.hasSystemFeature("com.google.android.tv")) {
// here it is a Android TV
} else {
// here it is a smartphone or tablet or Car
}
它不适用于基于 Android 的电视棒。我认为它仅适用于 GoogleTv?
如何检查任何基于 Android 的电视?
【问题讨论】:
-
框架中没有任何内容可以让您知道应用程序在什么类型的系统上运行,更不用说只有以 Android 作为操作系统的电视了,从技术上讲,这仍然只是 Android
标签: android android-tv android-package-managers