0

I want to create an Android system service that generates some data at a set interval of time and returns that to my activity through a callback. I kind of know how to that with a local service (at least, I have some examples). I thought that a system service works like a regular service but is simply started with the system. But now I have some doubts. Here's an example of a system service - http://processors.wiki.ti.com/index.php/Android-Adding_SystemService - it exposes some API to the activity, but how to communicate from service to the activity? There's no onBind, I don't know how to send Intent to it, how to get anything back really.

1 Answers1

0

If you want to start a service when the phone is booting perhaps you can listen for the ACTION_BOOT_COMPLETE event.

Check out this link How to start an Application on startup?

Community
  • 1
  • 1
fstef
  • 379
  • 4
  • 6