Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.Date; import java.util.concurrent.BlockingQueue; import android.os.Environment; import android.os.Handler; import android.util.Log; public class LogService { // Debugging private static final String TAG = "LogService"; private static final boolean D = true; private BlockingQueue mSource = null; private LogThread mLogThread = null;; private File mDataFile = null; private BufferedWriter mBufferedWriter = null; private FileWriter mFileWriter = null; private String mPath; public LogService(BlockingQueue queue, String path) { mSource = queue; mDataFile = null; mPath = path; } public synchronized void start() { if(mLogThread == null) { mLogThread = new LogThread(); mLogThread.setName("LogServiceThread"); } mLogThread.start(); } public synchronized void stop() { if(mLogThread != null) { mLogThread.cancel(); mLogThread = null; } } int i = 0; private class LogThread extends Thread { @Override public void run() { int[] data = null; Date date = new Date(); long d = date.getTime(); mDataFile = new File(Environment.getExternalStorageDirectory() + "/" + mPath + String.valueOf(d) + ".txt"); try { mDataFile.createNewFile(); } catch (IOException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } while(true){ try { Log.i(TAG, String.valueOf(mDataFile.length())); data = mSource.take(); mFileWriter = new FileWriter(mDataFile, true); StringBuilder sBuf = new StringBuilder(); for (int i = 5; i < data.length; i++) { //mFileWriter.write(data[i] + "\n"); sBuf.append(data[i] + "\n"); } String s = sBuf.toString(); mFileWriter.write(s); mFileWriter.close(); } catch (InterruptedException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } } } public void cancel() { try { mLogThread.join(); } catch (InterruptedException e) { Log.e(TAG, e.getMessage()); } } } }