Backgroundservice is running, but not working (FileObserver)
问题 I want to run a Backgroundservice (FileObserver) that will look for any filechanges in the system (CREATE, DELETE, MOVE, ...). When I start my application it works a few seconds and logs everything fine. For example at taking a picture by the camera it logs that. After a few seconds the service is still listed in Settings => Developer Options => Running Services but does not work and log anything anymore. Android Version: 7.0 Device: Samsung Galaxy S7 Edge I copied the code from Niza Siwale's