@Override public void onReceive(Context context, Intent intent) { System.out.println("**** Long Break ****"); if (AsyncMovementTracker.isBreakCompleted()) { Notif notification = new Notif(); notification.notifyUser(context); Vibrator vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); long[] vibratePattern = {100, 300, 100, 300, 100, 300}; vibrator.vibrate(vibratePattern, -1); /* should not call new tva because it nulls all the intents for the alarms */ musicIntent = new Intent(context, MusicService.class); context.startService(musicIntent); TimerViewActivity.setAccelerometer(new AsyncAccelerometer()); TimerViewActivity.startAsyncAccelerometer(); AsyncMovementTracker tracker = new AsyncMovementTracker(context); tracker.execute(); } else { System.out.println("Break completed? " + AsyncMovementTracker.isBreakCompleted()); } }