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 android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.Toast; import android.app.Notification; import android.app.NotificationManager; import android.net.Uri; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.media.MediaPlayer; public class AlarmReceiverQuarterBeforeTheHour extends BroadcastReceiver { private MediaPlayer theMediaPlayer; @Override public void onReceive(Context context, Intent intent) { /* * Get all the settings from the settings xml file. */ SharedPreferences clockSettings = PreferenceManager .getDefaultSharedPreferences(context); /* * Calculate how many minutes past the hour the current time is. */ CharSequence theMinutes = android.text.format.DateFormat.format("mm", new java.util.Date()); String stringMinutesNow = theMinutes.toString(); int intMinutesNow = Integer.valueOf(stringMinutesNow); /* * Calculate how many seconds past the hour the current time is. */ CharSequence theSeconds = android.text.format.DateFormat.format("ss", new java.util.Date()); String stringSecondsNow = theSeconds.toString(); int intSecondsNow = Integer.valueOf(stringSecondsNow); /* * Load these settings into variables. */ boolean booleanChimeOn45Past = clockSettings.getBoolean( "ChimeOn45Past", false); boolean booleanPhoneInUse = clockSettings.getBoolean("PhoneInUse", false); if (theMediaPlayer.isPlaying()) { Toast.makeText( context, "A sound is playing", Toast.LENGTH_SHORT).show(); } if (booleanPhoneInUse == false) { /* * Sound the chime if the setting is set to allow that. */ if (booleanChimeOn45Past == true && (intMinutesNow == 45 && (intSecondsNow >= 0 && intSecondsNow < 5))) { try { NotificationManager nm = (NotificationManager) context .getSystemService(Context.NOTIFICATION_SERVICE); Notification notification = new Notification(); notification.sound = Uri .parse("android.resource://ChimeMe.BigBen/raw/quarter_before"); nm.notify(0, notification); } catch (Exception e) { Toast.makeText( context, "There was an error somewhere, but we still received an alarm", Toast.LENGTH_SHORT).show(); e.printStackTrace(); } } else { } } }