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
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