Reputation: 391
I've been trying to find out how to do it, maybe using an IntentService, but I'm not sure that's the correct way for what I want to do. Can someone at least point me in the right way?
Upvotes: 0
Views: 43
Reputation: 32221
To do stuff in background you can use Service, AsyncTask or simply a Thread.
To do work in a loop, you can use Timer, AlarmManager and ScheduledExecutorService, while the most common one will be Handler.
Each one of the above got its own advantages and disadvantages. Read more about them to find what you need.
Upvotes: 1