Back to project page Task-Reminder-App.
The source code is released under:
MIT License
If you think the Android project Task-Reminder-App 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.TechSect.TaskReminderApp; // ww w . ja v a 2 s. c o m import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.pm.ComponentInfo; import android.util.Log; public class OnAlarmReceiver extends BroadcastReceiver { private static final String TAG = ComponentInfo.class.getCanonicalName(); @Override public void onReceive(Context context, Intent intent) { Log.d(TAG, "Received wake up from alarm manager."); long rowid = intent.getExtras().getLong(RemindersDbAdapter.KEY_ROWID); WakeReminderIntentService.acquireStaticLock(context); Intent i = new Intent(context, ReminderService.class); i.putExtra(RemindersDbAdapter.KEY_ROWID, rowid); context.startService(i); } }