android - Notification not showing up at specific time using AlarmManager and BroadCast receiver -
this call broad cast receiver class private void createalarmnotification() { // todo auto-generated method stub intent myintent = new intent(getapplication() , alarmset.class); alarmmanager alarmmanager = (alarmmanager)getsystemservice(alarm_service); pendingintent pendingintent = pendingintent.getbroadcast(getapplication(), 0, myintent, 0); calendar calendar1 = calendar.getinstance(); calendar calendar = calendar.getinstance(); calendar.set(2015, 3, 20, 23, 55, 00); alarm a= new alarm(); a.setalarm(mainactivity.this, calendar.gettimeinmillis(), 60*1000); } this broadcast receviver class public class alarm extends broadcastreceiver { private final long gmt6 = alarmmanager.interval_hour * 6; private final long day = alarmmanager.interval_day; private activitymanager activitymanager; private context context; @override public void onreceive(context context, intent intent) { this.context = context; ...