Search code examples
androidserviceandroid-activitygoogle-glassgoogle-gdk

Switch from immersion (Activity) to Live Card (Service)


I am launching a High Frequency LiveCard from Service but the Service is actually launch by an activity. I think the LiveCard(Service) has successfully launch but because my activity is still here (immersion) that is why I cant see it, when I swap down to exit the app, it kills the Service.

And now I am confuse. So do I force the app to close after I intent my service? or do I close just the activity? or maybe I should ask, is what I am trying to do even possible?

Activity -> Activity -> ... -> Activity -> Service (maintain LiveCard)

Thanks!


Solution

  • I found the problem. My problem is my laziness of not reading the document carefully. To show your LiveCard, you WILL HAVE TO SET THE ACTION!! which I was thinking to do that after I get the LiveCard showing. Anyways! HAPPY CODING!