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 pl.szakal.SoundsExample; import java.io.IOException; import java.util.HashMap; import java.util.Vector; import pl.szakal.R; import android.content.Context; import android.content.res.AssetFileDescriptor; import android.media.AudioManager; import android.media.MediaPlayer; import android.media.MediaPlayer.OnCompletionListener; public class SoundsExample { private MediaPlayer mediaPlayer; private final OnCompletionListener mediaPlayerListener = new MediaPlayerListener(); private Context context = null; public SoundsExample(Context context) { this.context = context; init(); } private void init() { if (mediaPlayer == null) { AudioManager am = (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); int streamVolume = am.getStreamVolume(AudioManager.STREAM_MUSIC); mediaPlayer = new MediaPlayer(); mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC); mediaPlayer.setOnCompletionListener(mediaPlayerListener); mediaPlayer.setVolume(streamVolume, streamVolume); } } private void setSound(int id) { if (mediaPlayer!=null) { mediaPlayer.reset(); AssetFileDescriptor file = context.getResources().openRawResourceFd(id); try { mediaPlayer.setDataSource(file.getFileDescriptor(), file.getStartOffset(), file.getLength()); file.close(); mediaPlayer.prepare(); } catch (IOException e) { mediaPlayer = null; } } } public void playSound(int id) { if (mediaPlayer!=null) { setSound(id); mediaPlayer.start(); } } private static class MediaPlayerListener implements OnCompletionListener { public void onCompletion(MediaPlayer mediaPlayer) { mediaPlayer.seekTo(0); } } }