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.startup; /* w w w. j a v a 2s . co m*/ import de.lukeslog.alarmclock.support.AlarmClockConstants; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; /** * This Receiver is registered to be started on boot to start the alarm clock when the systems is * started */ public class StartUp extends BroadcastReceiver { public static final String PREFS_NAME = AlarmClockConstants.PREFS_NAME; public static String TAG = AlarmClockConstants.TAG; @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "STARTUPSTARTUPSTATUP"); Log.d(TAG, "-----------------------------------------------"); Log.d(TAG, "-----------------------------------------------"); Log.d(TAG, "-----------------------------------------------"); Log.d(TAG, "-----------------------------------------------"); try { ServiceStarter.start(context); } catch(Exception e) { Log.e(TAG, "Error on Startup."); } } }