谷歌电视启动时,显示直播电视?开机启动服务?
我对 Android 开发非常陌生,正在为谷歌电视开发 Android 应用程序。我当前的障碍是我想在 GTV 启动后立即启动 Live TV 应用程序。
我认为这将是一个在启动时加载的服务,告诉直播电视应用程序启动,但我不知道启动时的服务是否可能,也不知道如何定位直播电视应用程序。
有什么想法或建议吗?
I am pretty new at android development and am working on an android app for google tv. my current hurdle is that i want to start the Live TV app as soon right after the GTV starts.
I am thinking that it would be a Service that loads on startup that tells the Live TV app to start, but i don't know if a Service at startup is possible, nor do i know how to target the Live TV app.
any ideas or suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
用户可以从 UI 设置启动应用程序。如果将 LiveTV 设置为启动应用程序还不够(这是默认设置),您可以启动您的应用程序,然后启动 Live TV。
您还可以让在启动时启动的服务执行此操作,就像在任何 Android 平台上一样。
A user can set the startup application from the UI. If setting LiveTV to be the startup app isn't enough (it's the default), you can have your app start, then launch Live TV.
You can also have services that start at launch do it, just as you can on any Android platform.
我的解决方法是让 LiveTV 成为启动应用程序(在 Google TV UI 中设置)。然后,我将服务设置为在启动时启动,如下所述。
http://www.androidcompetencycenter.com/2009/06/start-启动时服务/
My workaround was to make LiveTV be the start up application (Set up in the Google TV UI). Then, I set my service to start on boot, explained here.
http://www.androidcompetencycenter.com/2009/06/start-service-at-boot/