2

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!

Jacky So
  • 233
  • 5
  • 12

2 Answers2

3

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!

Jacky So
  • 233
  • 5
  • 12
0

You can call finish() inside your activity to dismiss it after you've started your service.

Finishing the activity should not cause the service to stop as well — the service is independent of the activity. Are you sure that your service actually started and did not stop itself at any point (because of an error or some other reason)?

Tony Allevato
  • 6,429
  • 1
  • 29
  • 34
  • I tried that but because I actually have multiple layers of activities. It just goes to another activity. I should edit my question. – Jacky So Feb 07 '14 at 14:59
  • I am not getting any kind of error, and that I am assuming I have successfully launch my livecard(service). Is there anyway I can check my service is launch and its running at the background?? – Jacky So Feb 07 '14 at 15:03