Back to project page Timetable.
The source code is released under:
GNU General Public License
If you think the Android project Timetable 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 com.timetable.android; // w ww. ja va 2 s . com import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.timetable.android.alarm.AlarmService; /* * Class, that receives broadcast, when device is restarted and starts all services. */ public class ServiceStarter extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); Logger.log("EventStarter.onReceive: action is received " + action); if (BroadcastActions.ACTION_APP_STARTED.equals(action) || Intent.ACTION_BOOT_COMPLETED.equals(action)) { context.startService(new Intent(context, DeviceMuteService.class)); context.startService(new Intent(context, AlarmService.class)); context.startService(new Intent(context, EventService.class)); } } }