What is the best way to do a periodically check on sensors such as UV or light and notify the user if those values riches a limit set by me? I would like this task to run somewhere in background, that do not require any user interaction.
I have already tried Alarm API, but this method opens my entire application, including the UI and I don't want that behaviour. I would like to perform this task in background, similar to a service.
If you could give me any suggestions I would appreciate it very much!
Thanks,
Bogdan