HelloWorld for Google Glass

一曲冷凌霜 提交于 2019-12-01 19:59:16

I created a Hello World project on GitHub.

Start the app by saying "ok glass, hello world" or click on Hello World card shown on the timeline.

The live card has an option menu with two choices:

  1. Say Hi
  2. Close app

Please mark as answer if this helps.

It looks like you're conflating concepts from activities and services. You're right to be using a service to maintain the LiveCard. But you should override the onStartCommand method to publish the card when the service is launched. Please see the source code for the Compass, Stopwatch, and Timer for more examples.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!