- private void getFileList(File file){
- //list all the files in the path
- File[] files = file.listFiles();
- //Traverse the various document the current
- for(int i = 0; i < files.length; i++){
- File f = files[i];
- if(f.isFile()){
- if(f.getName().toString().toLowerCase().endsWith(".3gp")){
- pathList.add(f.getPath());
- }
- }else if (f.isDirectory()) {
- getFileList(f);
- }
- }
- }