I’ve done very little with android dev and I was wondering if anyone has a good tutorial in regards to Services.
I’m looking to make an app that starts and continues to loop forever even in the background.
I’ve done very little with android dev and I was wondering if anyone has
Share
There is a wealth of resources on Services if you do a simple google search so I’m not going to explain how services work. The code snippet below uses a service that isn’t bound to the Activity.
My approach uses a Timer and a Task, note I use a task that repeats but this is not necessary. There are other ways you can approach this.
You would then start the service from an Activity using an Intent
Hope this helps