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)
package com.work.camerautil; import java.io.IOException; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.content.DialogInterface.OnClickListener; import android.media.MediaRecorder; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.SurfaceHolder; import android.view.SurfaceView; public class Capture extends Activity { private static final int START_VIDEO = 1; private static final int SAVE_VIDEO = 2; private static final int EXIT = 3; private static final int LOCATION = 4; private Preview mPreview; SurfaceView sv; AndroidFileBrowser m_cBrowser; SurfaceHolder holder; MediaRecorder m_cRecorder = new MediaRecorder(); /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mPreview = new Preview(this); setContentView(mPreview); m_cRecorder.setAudioSource(MediaRecorder.AudioSource.MIC); m_cRecorder.setVideoSource(MediaRecorder.VideoSource.DEFAULT); m_cRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); m_cRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); m_cRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP); m_cRecorder.setOutputFile("/sdcard/DCIM/100ANDRO/test28.mp4"); } public boolean onCreateOptionsMenu(Menu pMenu) { pMenu.add(0,START_VIDEO,0,"Capture"); pMenu.add(0,SAVE_VIDEO,0,"Save"); pMenu.add(0,EXIT,0,"Exit"); pMenu.add(0,LOCATION,0,"open"); return true; } public boolean onOptionsItemSelected(MenuItem pItem) { switch(pItem.getItemId()){ case LOCATION: next(); return true; case START_VIDEO: try { m_cRecorder.prepare(); } catch (IllegalStateException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } try{ m_cRecorder.start(); }catch(Exception e){ e.toString(); } return true; case SAVE_VIDEO: saveVideo(); return true; case EXIT: finish(); return true; } return false; } public void saveVideo(){ try{ m_cRecorder.stop(); //m_cRecorder.reset(); m_cRecorder.release(); }catch(Exception e){ e.toString(); } } }