今天在跑Google针对tv开发出点框架 Leanback的时候,遇到一个问题,就是桌面上没有该appicon.刚开始以为安装不成功。后来发现是。桌面上没有该app的icon.这个问题以前也没有遇到过,仔细看了下。xml文件里面有icon。也有logo就是桌面没有显示这个。后来又猜测是不是没有label。加上去还是不显示。。最后在xml里面看到这么一段:
<uses-feature
android:name="android.hardware.microphone"
android:required="false" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
百度下其作用:
解释如下:
touchscreen为false,即TV app 不需要触摸
android.software.leanback:仅仅在TV上运行设置为true,在TV和phone上运行设置为false