简体   繁体   English

为Android TV Box开发的应用程序是否与平板电脑和移动设备相同? 可以使用PhoneGap / Cordova开发Android TV Box应用程序吗?

[英]Is developing apps for Android TV Box same as that for tablet and mobile? Can PhoneGap/Cordova be used to develop Android TV Box Apps?

I am new to android tv box development. 我是android电视盒开发的新手。 Can the apps developed for mobile and tablet be used for android TV Box (not the android TV) ? 为手机和平板电脑开发的应用程序可以用于android TV Box(不是android TV)吗? Since the tv boxes have remote controls, and each manufacturer follows different design and standards for remote, how are events handled for each of these set-top boxes? 由于电视盒具有遥控器,并且每个制造商都遵循不同的遥控器设计和标准,因此如何处理这些机顶盒中的每个事件? Moreover is the play store for these apps same as android phone and tablet play store? 此外,这些应用程序的Play商店是否与Android手机和平板电脑Play商店相同? If I want to release an app on phone, tablets and android TV set top box, do I have to maintain a different apk for android tv set top box ? 如果我想在手机,平板电脑和android电视机顶盒上发布应用程序,是否需要为android电视机顶盒维护一个不同的apk? Is cordova supported? 支持cordova吗?

Sorry. 抱歉。 I am very new to this, and cant find any relevant help on other sites. 我对此很陌生,无法在其他站点上找到任何相关帮助。 I need to know about android set top boxes, for example, https://droidbox.co.uk/ , and not the android TV. 我需要了解android机顶盒,例如https://droidbox.co.uk/而不是android TV。

I don't have tv box myself, but from informations I got box is just android tv without screen. 我自己没有电视盒,但是从信息中我可以看到盒子是没有屏幕的android电视。 So if you want to write app for Nvidia Shield which is based on android 5.X, you need to meet all requirement for Android TV. 因此,如果您要为基于Android 5.X的Nvidia Shield编写应用程序,则需要满足Android TV的所有要求。

There are also older devices based on android 4.X. 也有基于android 4.x的旧设备。 Those devices usually have pointer which you can move using remote (some even have a mouse). 这些设备通常都具有指针,您可以使用遥控器移动指针(有些甚至带有鼠标)。 In that case I think that most android phone/tablet app should work on them. 在那种情况下,我认为大多数android手机/平板电脑应用都可以在它们上运行。 To make your app visible in Google Play on those devices you need to add to your manifest following line: 要使您的应用在这些设备上的Google Play中可见,您需要在清单行中添加以下内容:

<uses-feature android:name="android.hardware.touchscreen" android:required="false" />

There is only one Play Store for android apps. 只有一个适用于Android应用的Play商店。 Which apps will be available for which device depends on app manifest file and its required features. 哪些应用程序可用于哪些设备取决于应用程序清单文件及其必需的功能。 Also you don't need separate apk for different devices. 同样,您不需要针对不同设备的单独apk。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM