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.File; import java.util.ArrayList; import android.app.Service; import android.content.Intent; import android.media.MediaRecorder; import android.os.Environment; import android.os.IBinder; import android.util.Log; public class RecorderService extends Service { private String tag = "MYAPP"; boolean recording = true; MediaRecorder recorder; @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return null; } @Override public void onCreate() { super.onCreate(); startRecording(); } @Override public void onDestroy() { recording = false; recorder.release(); super.onDestroy(); } private void startRecording(){ new Thread(){ @Override public void run() { File f = new File(Environment.getExternalStorageDirectory().getAbsolutePath() +"/TestApp/tes.3gp"); f.delete(); Log.d(tag, "About to create new MediaRecorder();"); recorder = new MediaRecorder(); int counter = 0; while (recording) { counter++; Log.d(tag, "Starting loop"); Log.d(tag, "LOOP RUN: " + Integer.toString(counter)); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); Log.d(tag, "Setting output file"); recorder.setOutputFile(Environment.getExternalStorageDirectory().getAbsolutePath() +"/TestApp/tes.3gp"); try { Log.d(tag, "preparing recorder"); recorder.prepare(); } catch (Exception e) { Log.d(tag, e.toString()); } Log.d(tag, "Starting recorder"); recorder.start(); for (int i = 0; i < 5; i++) { mysleep(100); } Log.d(tag, "Stopping recorder"); recorder.stop(); Log.d(tag, "resetting recorder"); recorder.reset(); f.delete(); } Log.d(tag, "Recording loop ended"); } }.start(); } private void mysleep(int time){ try { Thread.sleep(time); } catch (InterruptedException ex) { Log.e("Exception: ", ex.getMessage()); } } }