I notice only now that the real problem seem to be here:
Qt Code:
  1. public String read(String filesDir, String file){
  2.  
  3. StringBuilder fileData = new StringBuilder(1000);
  4. try {
  5. BufferedReader reader = new BufferedReader( new FileReader( new File(filesDir + "//" + file) ));
  6. try {
  7. char[] buf = new char[1024];
  8. int numRead = 0;
  9. while((numRead=reader.read(buf)) != -1){
  10. fileData.append(buf, 0, numRead);
  11. }
  12. } finally { reader.close(); }
  13.  
  14. } catch (IOException e) {
  15. System.out.println("file not found");
  16. System.exit(-1);
  17.  
  18. }
  19.  
  20.  
  21. return fileData.toString();
To copy to clipboard, switch view to plain text mode 
on the "fileData.append(buf, 0, numRead);"
I've made a mistake: i have 2500 files to read.....
any suggestions?