Back to project page AmbientAlarmClock.
The source code is released under:
<p align="center"><a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"> <img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/4.0...
If you think the Android project AmbientAlarmClock listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.lukeslog.alarmclock.teardown; /*from w w w. jav a 2s . c o m*/ import android.content.Context; import android.content.Intent; //import de.lukeslog.alarmclock.ChromeCast.ChromeCastService; import de.lukeslog.alarmclock.MediaPlayer.MediaPlayerService; import de.lukeslog.alarmclock.main.ClockWorkService; import de.lukeslog.alarmclock.startup.NotificationService; /** * Created by lukas on 29.04.14. */ public class Teardown { public static void stopAll(Context ctx) { //STOP MUSIC PLAYER Intent stopmusic = new Intent(); stopmusic.setAction(MediaPlayerService.ACTION_TURN_MEDIASERVICE_PERMNENTLY_OFF); ClockWorkService.getClockworkContext().sendBroadcast(stopmusic); //STOP NOTIFICATION NotificationService.stop(); // ChromeCastService.stop(); //STOP CLOCKWORK ClockWorkService.stopService(); } }