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 org.me.lap; import android.app.Activity; import android.media.MediaRecorder; import android.os.Bundle; import android.view.View; import android.view.WindowManager; import android.widget.Button; import android.media.AudioFormat; import android.media.AudioRecord; import android.media.MediaPlayer; public class flute extends Activity { Button pulDO; Button pulRE; Button pulMI; Button pulFA; Button pulSOL; Button pulLA; Button pulSI; Button pulSTART; Button pulSTOP; MediaPlayer mediaplayer; AudioRecord ar; boolean recorder=false; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.flute); pulDO=(Button)this.findViewById(R.id.pulDO); pulRE=(Button)this.findViewById(R.id.pulRE); pulMI=(Button)this.findViewById(R.id.pulMI); pulFA=(Button)this.findViewById(R.id.pulFA); pulSOL=(Button)this.findViewById(R.id.pulSOL); pulLA=(Button)this.findViewById(R.id.pulLA); pulSI=(Button)this.findViewById(R.id.pulSI); pulSTART=(Button)this.findViewById(R.id.pulSTART); //start button pulSTOP=(Button)this.findViewById(R.id.pulSTOP); /stop button // IF I CLICK START BUTTON, START RECORDING pulSTART.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { recorder=true; registra(); } }); } void registra() { int minSize = AudioRecord.getMinBufferSize(8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT); ar = new AudioRecord(MediaRecorder.AudioSource.MIC, 8000, AudioFormat.CHANNEL_CONFIGURATION_MONO, AudioFormat.ENCODING_PCM_16BIT, minSize); short[] buffer = new short[minSize]; ar.startRecording(); //IF I CLICK STOP BUTTON, I STOP RECORDING AND EXIT FROM THIS VIEW pulSTOP.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { if(recorder) { recorder=false; ar.stop(); System.exit(0); } } }); while(recorder) { ar.read(buffer, 0, minSize); for (short s : buffer) { if (Math.abs(s) > 25000) //DETECT VOLUME (IF I BLOW IN THE MIC) { pulDO.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mediaplayer = MediaPlayer.create(flute.this, R.raw.fdo); mediaplayer.start(); } }); pulRE.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mediaplayer = MediaPlayer.create(flute.this, R.raw.fre); mediaplayer.start(); } }); pulMI.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mediaplayer = MediaPlayer.create(flute.this, R.raw.fmi); mediaplayer.start(); } }); pulFA.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mediaplayer = MediaPlayer.create(flute.this, R.raw.ffa); mediaplayer.start(); } }); pulSOL.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mediaplayer = MediaPlayer.create(flute.this, R.raw.fsol); mediaplayer.start(); } }); pulLA.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mediaplayer = MediaPlayer.create(flute.this, R.raw.fla); mediaplayer.start(); } }); pulSI.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { mediaplayer = MediaPlayer.create(flute.this, R.raw.fsi); mediaplayer.start(); } }); } } } ar.stop(); } }