Skip to content

Instantly share code, notes, and snippets.

View arifullahjan's full-sized avatar
😈
hmm

Arifullah Jan arifullahjan

😈
hmm
View GitHub Profile
@gitanuj
gitanuj / RecursiveFileObserver.java
Created May 20, 2015 19:15
A FileObserver for Android which monitors all the files/folders in a directory recursively.
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.Stack;
import android.os.FileObserver;
/**
* A FileObserver that observes all the files/folders within given directory
* recursively. It automatically starts/stops monitoring new folders/files