dimanche 21 août 2016

How to create a background service to populate a list in android?

I have an Activity created in my Application which has a RecyclerView that is populated once since the activity is started.

How I can create a background service that starts on the Activity creation and runs on the background and checks through a web process, every x seconds/milliseconds for any changes and repopulate the list in each case accordingly, without drain too much battery?

Every opinion is accepted.

Aucun commentaire:

Enregistrer un commentaire