1)Basic service code would be:
- Code: Select all
//sleep for n seconds
in order to stop it, do stopService() call make me exit from that loop?And is this the right way to do a periodic service?
2) As service job is very long android doc suggests to use a serviceIntent or create a thread in the service itself: what's the difference?And what is the best choice?
3)What is the best way to pass to service a LONG data list?