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 app.stream; import java.io.IOException; import android.app.Activity; import android.os.Bundle; import android.media.MediaPlayer; import android.media.MediaPlayer.OnCompletionListener; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.util.Log; public class AudioPlayerActivity extends Activity { /** Called when the activity is first created. */ protected static final int PLAY = 0x101; protected static final int STOP = 0x102; protected static final int PAUSE = 0x103; int State; public void onCreate(Bundle icicle) { super.onCreate(icicle); setContentView(R.layout.main); final MediaPlayer mplayer = new MediaPlayer(); mplayer.stop(); // PLAY button Button play = (Button) this.findViewById(R.id.cmd_play); State = STOP; play.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { // mp.prepare(); //mplayer.reset(); if (State == STOP) { try { mplayer.setDataSource("http://radio.hbr1.com:19800/trance.ogg"); mplayer.prepareAsync(); mplayer.start(); } catch(IOException e) { Log.d("AudioPlayer","IOException"); } } mplayer.start(); State = PLAY; mplayer.setOnCompletionListener(new OnCompletionListener() { public void onCompletion(MediaPlayer arg0) { } }); } }); // PAUSE button Button pause = (Button) this.findViewById(R.id.cmd_pause); pause.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { mplayer.pause(); State = PAUSE; } }); // STOP button Button stop = (Button) this.findViewById(R.id.cmd_stop); stop.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { mplayer.stop(); State = STOP; } }); } }