Skip to content

Instantly share code, notes, and snippets.

View pankajjangid's full-sized avatar

Pankaj Kumar Jangid pankajjangid

View GitHub Profile
@cutiko
cutiko / AlarmBroadcaster.java
Created February 13, 2016 22:49
How to set an alarm Android (AlarmManager)
public class AlarmBroadcaster extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
//Remember in the SetAlarm file we made an intent to this, this is way this work, otherwise you would have to put an action
//and here listen to the action, like in a normal receiver
createNotification(context);
}
public void createNotification(Context context) {