Android Question Which is the best way to monitor changes, if API>23

dcoun

Member
Licensed User
Longtime User
Looking a way to monitor wifi changes in order to process a number of tasks I arrive to the situation that solution like the following do not work, if targeting to API>23:
https://www.b4x.com/android/forum/t...-wifi-wifi_state_changed-in-background.70017/

One solution is to have a background service running every 10 minutes but I am not sure that it is battery efficient.
I need a service to be informed or to be started by a intent like a wifi change
What do you propose?

PS I have found this: https://github.com/evernote/android-job but I am not enough familiar to use it....
 
Last edited:

dcoun

Member
Licensed User
Longtime User
Starting from Android 8 it is no longer possible to wake up your app in a response to network state change. What do you need to do when the state changes?
do network requests to update data and synchro works
 
Upvote 0
Top