3

So I've got my live card working with the v12 GDK. It responds to a voice trigger and then sits there until the user stops it.

However, I can't determine how to create an always present live card which always remains on the left side of the timeline. Some apps already do this, the Settings app and Weather app, for instance. But I've been unable to make the same happen for my app; I can't find any hook on Glass start like the GlobalAlarmReceiver for normal Android apps.

Am I missing something?

Tony Allevato
  • 6,429
  • 1
  • 29
  • 34
johnarleyburns
  • 1,532
  • 12
  • 13

1 Answers1

3

To make a live card that will remain in the timeline even if the user reboots the device, you may want to try the techniques described here to register a broadcast receiver that detects when the system is booted and you can start your service from there.

Your users will still need to use a voice trigger to start it once after installing it, though (either that, or reboot their device, which is even less desirable). This is because on Android, the ACTION_PACKAGE_ADDED broadcast that gets sent when an application is installed doesn't get sent to the application that was just installed.

Community
  • 1
  • 1
Tony Allevato
  • 6,429
  • 1
  • 29
  • 34