'How does the "FileObserver.onEvent" call occur?

I'm investigate FileObserver and how android works with files. And now I need to find out how does the "FileObserver.onEvent" call occur? What exactly triggers it and how?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source