Android - listen to changes in a folder
<p>I have a Bluetooth application, which will list out all of the files in the bluetooth folder on my phone. So far I have only done it this way: </p>

<pre><code>public class GetCaseInformation {

int numberOfFiles;
String pathToFolder;
File folder;

public GetCaseInformation(String pathToFolder) {

    this.pathToFolder = pathToFolder; 
    folder = new File(pathToFolder);
}


public int getCasesFromFolder() {

    return folder.list().length; 

}

}
</code></pre>

<p>A very simple way to check how many files I have in my folder. The method <code>getCasesFromFolder()</code> is called in my <code>onCreate</code> method, so this will just be updated every time the user goes to the home screen. Is it possible to listen for changes in a spesific folder? So I dynamicaly can update the count of files in this folder? </p>
