In Android, how do I monitor changes made by others (app, internet, bluetooth, dll) to a file or directory
Asked
Active
Viewed 1.0k times
9
-
"dll"? What do you mean by that? – Dan Dascalescu May 22 '17 at 00:20
2 Answers
28
I think FileObserver is what you are looking for

Bostone
- 36,858
- 39
- 167
- 227
-
Thanks. I just want to use something that uses or similar to inotify. And it does :D – RadZaeem May 05 '11 at 06:06
1
No, in standard android, you don't monitor for activities of others, app, internet etc.
Your program can only track and access your data directory. Others uses its own directories.
But, if you have rooted a telephone, you can write/start a root process or suid process. But this solution is only valid for rooted telephones..

Bo Persson
- 90,663
- 31
- 146
- 203

skoylu
- 11
- 1
-
"telephones"? Funny how nowadays Android runs on watches, TVs, cars, and whatnot. – Dan Dascalescu May 22 '17 at 00:21