i've got a problem with my Android FileObserver.
I have a background service running (returns START_STICKY), which references two FileObservers. Everything is working fine until the device is set to sleep mode, which will stop the service, as far as i know.
Does anybody know what exactly happens to the Service/FileObserver when a device is put to sleep mode?
Can the service get notified before freezing so I can save a file list of the observed folder and compare it to a new list when the device gets waked up again?
I don't want to use a wakelock because of its impact on battery life.
- Will the FileObserver Event be fired for changes to folders which happend while my service was set to sleep, as soon as I turn the screen back on?
That can't really test it because usb debugging keeps the device awake.
Thanks for your help!