Code example for Vector

Methods: containsremove

0
           } else if (event == FileObserver.DELETE) {
               if (path != null) {
                   int index = path.indexOf("tmp");
                   String tempFileName = (String) path.subSequence(0,
                           index - 1);
                   if (audioFileNames.contains(tempFileName)) {
                       audioFileNames.remove(tempFileName);
                   } 
               } 
 
           } 
       } 
   }; 
} 
 
private void readFile(String fileName) {
 
   File attachment = new File("/sdcard/Sounds/" + fileName);
   if (attachment.exists()) {
       FileInputStream fis;
Stop searching for code, let great code find you!  Add Codota to your java IDE