Hi,
Is there a software pattern to synchronise data between foreground and background service ?
I want to monitor the battery in the background but this needs to be done in the foreground as well . Both services running asynchronous . Currently I use timestamps, but only monitoring the state change plugged - > unplugged is some code to write . And I want to extend this to get data each full hour.