• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps What class to use to run endless task on Android device

horatio

Newbie
I am working on some Android project.
Apart from main Activity (user interface) I have a requirement to endlessly run an important TASK (in background) that every 30 seconds calls REST service to check for new data.
In case there are any new data the TASK has to notify about this fact the Activity.
This TASK needs to run even when the Activity was for instance moved to background and finished as a result of lack of device
 
Back
Top Bottom