简体   繁体   English

Qt C++ 应用程序在 android 电视上自动启动

[英]Qt c++ application autostart on android tv

I have a QT application written on C++.我有一个用 C++ 编写的 QT 应用程序。 It is working fine on all android/Linux/windows devices.它在所有 android/Linux/windows 设备上运行良好。 But I want to make it run on android enabled TV.但我想让它在支持 android 的电视上运行。 I also want to make it run and when the TV is turned on.我也想让它运行,当电视打开时。 Google shows me that the application must use leanback libraries. Google 告诉我该应用程序必须使用 Leanback 库。 But is it possible to use these libraries inside C++ Qt application ?但是可以在 C++ Qt 应用程序中使用这些库吗? Is it possible at all to run this APK when the TV is turned on ?打开电视时是否可以运行此 APK?

Assuming the architecture is correct (ARM/x86), you need to mark it as AndroidTV.假设架构正确(ARM/x86),则需要将其标记为AndroidTV。 This link may be useful to you.此链接可能对您有用。 https://developer.android.com/training/tv/start/start.html#tv-activity https://developer.android.com/training/tv/start/start.html#tv-activity

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

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