• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Is it possible to get notification when the content of a regular file is changed

I think you are looking for android.os.FileObserver.
You implement a subclass of it, which implements onEvent().
Then you construct a new instance of this class with the file path and maybe flags as parameters. After calling startWatching() your callback should be invoked with file changes.

--
deepdroid
 
Thanks for you replay, I ever tried FileObserver, it only can monitor the registered file or files just under the registered path, But I want to monitor the files under the registered path RECUSIVELY.
 
Back
Top Bottom