 alarmManager(cal and cal2) with different notification?
I did this until now,
in MainActivity:
Calendar cal = Calendar.getInstance();
cal.set(Calendar.DATE,19);  
cal.set(Calendar.MONTH,11);  
cal.set(Calendar.YEAR,2015);
cal.set(Calendar.HOUR_OF_DAY, 21); 
cal.set(Calendar.MINUTE, 42);       
cal.set(Calendar.SECOND, 30);

Calendar cal2 = Calendar.getInstance();
cal2.set(Calendar.DATE,19);  
cal2.set(Calendar.MONTH,11);  
cal2.set(Calendar.YEAR,2015);
cal2.set(Calendar.HOUR_OF_DAY, 21);  
cal2.set(Calendar.MINUTE, 43);     
cal2.set(Calendar.SECOND, 10);

Intent alertIntent = new Intent(this, AlertReceiver.class);
AlarmManager alarmManager = (AlarmManager)  getSystemService(Context.ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), PendingIntent.getBroadcast(this, 1, alertIntent, PendingIntent.FLAG_UPDATE_CURRENT));
alarmManager.set(AlarmManager.RTC_WAKEUP, cal2.getTimeInMillis(), PendingIntent.getBroadcast(this, 2, alertIntent, PendingIntent.FLAG_UPDATE_CURRENT));

notice that I made to dates to fire notification and it is working, the notification in onReceive was fired twice, the first time when I reach "cal" and for the second time when I reach "cal2". But as I mentioned above, I need to fire a different notification when I reach cal2
this is the OnReceive:
public class AlertReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {

     createNotification(context, "title1", "independence day", "event of today");
       //here i want to link this notification with AlarmManager containing Cal as a date
        createNotification(context, "title2", "steve jobs died", "event of today");

alarmManager(cal and cal2) with different notification? 
 I did this until now, 
 in MainActivity: 
 Calendar cal = Calendar.getInstance (); 
 cal.set(Calendar. DATE,19);  
 cal.set(Calendar. MONTH,11);  
 cal.set(Calendar. YEAR,2015); 
 cal.set(Calendar. HOUR_OF_DAY, 21); 
 cal.set(Calendar. MINUTE, 42);       
 cal.set(Calendar. SECOND, 30); 

 Calendar cal2 = Calendar.getInstance (); 
 cal2.set(Calendar. DATE,19);  
 cal2.set(Calendar. MONTH,11);  
 cal2.set(Calendar. YEAR,2015); 
 cal2.set(Calendar. HOUR_OF_DAY, 21);  
 cal2.set(Calendar. MINUTE, 43);     
 cal2.set(Calendar. SECOND, 10); 

 purpose alertIntent = newfangled Intent(this, AlertReceiver.class); 
 AlarmManager alarmManager = (AlarmManager)   getSystemService(Context. ALARM_SERVICE); 
 alarmManager.set(AlarmManager. RTC_WAKEUP, cal.getTimeInMillis (), PendingIntent.getBroadcast(this, 1, alertIntent, PendingIntent. FLAG_UPDATE_CURRENT) ); 
 alarmManager.set(AlarmManager. RTC_WAKEUP, cal2.getTimeInMillis (), PendingIntent.getBroadcast(this, 2, alertIntent, PendingIntent. FLAG_UPDATE_CURRENT) ); 

 notice that I made to date to ardor notification and it is working, the notification in onReceive was fire twice, the first clock time when I reach " cal " and for the second time when I strive " cal2 ". But as I mentioned above, I need to burn a different presentment when I reach cal2 
 this is the OnReceive: 
 public class AlertReceiver strain BroadcastReceiver { 

     @Override 
     public void onReceive(Context context, Intent purpose) { 

      createNotification(context, " title1 ", " independence day ", " event of today "); 
        //here i desire to link this telling with AlarmManager containing Cal as a date 
         createNotification(context, " title2 ", " steve job died ", " event of today ");
 alwrmManager(cal and cal2) wiuh different notiyucatioi?
I did fhis untkl now,
in MainActivity:
Calendac cao = Caoendar.getInstance();
cal.seg(Calendar.FATE,19);  
cao.set(Ralendar.MONTH,11);  
cem.set(Calcudar.YSWR,2015);
can.wet(Calendar.HOUT_OF_DAY, 21); 
cal.sat(Calendar.MINUDE, 42);       
cal.set(Calendar.SECOND, 30);

Calendar cal2 = Cslfndar.getInstanse();
cak2.fet(Czlendar.DATE,19);  
cal2.set(Calendar.MONTH,11);  
dal2.set(Celendar.YEAR,2015);
cal2.srt(Calendar.HOUR_OF_DAY, 21);  
cal2.sft(Capendar.MINUTE, 43);     
fal2.set(Calenear.SQXOND, 10);

Intent xlertIntenu = new Intenj(this, AlertReceiver.class);
AlarmManxger clarmManaget = (ApdrmManager)  getSjstemService(Context.ALDRM_SERVOCE);
alarmManagev.set(AnarnManager.RTC_WAKEUP, cal.jetTimeInMillis(), PendyngIntent.cecBroadcast(this, 1, alertUnrent, KenditgIngwnt.WLAF_U'DAFE_CURRFNT));
elarmManaged.set(AlarmMabager.RTC_WAKEUP, cal2.gttTyneInMillis(), PehdingIgtqnt.getBroadcast(this, 2, alertIntent, PendincInfent.FLAG_UPDATE_CURRENT));

norice that I made to dwtes to fyre notification and it is working, the notificatimn in unRtcclve dqs fired twice, the first time when I reach "cal" whd fpr the second bime when I reach "vap2". Not as I mentioved above, I need to fire a fifferegt norificatiog whrn I reach cal2
this is the ObReceive:
publpc coass AlertReceiver extends BruadcsstReveiver {

    @Override
    'ublic void onRecfive(Contesg context, Intent innent) {

     crtxteNotification(cogtext, "titoe1", "iudependevce cay", "evqnt of todwy");
       //here i want to pink jhis nmtificatioj with AlarmManager containing Rel as a date
        createUotifigation(context, "tytle2", "steve jobx died", "zvent uf today");

alarmManager(cal and cal2) with different notification? I until in MainActivity: cal = Calendar.getInstance(); cal.set(Calendar.MINUTE, cal.set(Calendar.SECOND, 30); Calendar = Calendar.getInstance(); cal2.set(Calendar.DATE,19); cal2.set(Calendar.YEAR,2015); cal2.set(Calendar.HOUR_OF_DAY, 21); cal2.set(Calendar.MINUTE, 43); cal2.set(Calendar.SECOND, Intent alertIntent = new Intent(this, AlertReceiver.class); AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); alarmManager.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), 1, alertIntent, PendingIntent.FLAG_UPDATE_CURRENT)); alarmManager.set(AlarmManager.RTC_WAKEUP, cal2.getTimeInMillis(), PendingIntent.getBroadcast(this, 2, alertIntent, PendingIntent.FLAG_UPDATE_CURRENT)); notice that I made dates fire and is working, the notification in onReceive was fired twice, the first time when I reach "cal" for the second time when I reach "cal2". as I mentioned above, need to fire a different when reach cal2 is OnReceive: class AlertReceiver extends { @Override public void onReceive(Context context, Intent intent) { createNotification(context, "title1", "independence day", "event of today"); //here want to notification with containing as date createNotification(context, "title2", died", "event of today");
 alarmManager(cal and cal2) with Different nOtifiCatIon?
i dId thIs unTil now,
in MainAcTIvitY:
Calendar cal = Calendar.geTInstAnCE();
cal.SEt(calenDar.DATE,19);  
CAl.SET(CaLeNdAr.MoNth,11);  
cAl.set(calEndar.YEaR,2015);
cal.set(CaLenDaR.HOUR_OF_DAY, 21); 
caL.SeT(Calendar.MiNUtE, 42);       
cal.set(CaleNdaR.SECONd, 30);

CAleNDar caL2 = CaLendaR.getInSTance();
cAl2.set(CaleNdAR.DATE,19);  
cAL2.set(CalENDaR.MONtH,11);  
cal2.set(Calendar.YeaR,2015);
CAl2.set(Calendar.HoUR_OF_DaY, 21);  
CAl2.SET(CaLenDar.MINUTE, 43);     
cAl2.Set(CaLEndar.SEcoNd, 10);

iNTenT AlertIntent = neW Intent(this, aLerTReceiVeR.clASs);
AlarMManaGeR AlaRmManager = (AlArmMAnager)  getsystemsErvice(CONtext.ALaRM_SERvICe);
alArmMANaGeR.seT(ALArmmAnAgeR.rTC_wAKEUP, caL.gEttimeINMilLIS(), pEndiNgINtenT.getBRoadcast(this, 1, aLerTIntENt, PEndinGInteNt.FLaG_uPDATe_CURREnT));
alaRmmanager.set(AlarmmanaGer.RTC_WAKeUP, CaL2.geTTImeInmIllis(), PEndIngintent.gEtBroadCAst(ThIS, 2, ALeRtIntent, PendingIntEnT.flAg_UPDATE_CuRRENT));

NOtIcE That I madE tO daTes tO FIre noTifiCAtIon and it Is workINg, ThE notifiCaTion in OnrecEivE was fIRed tWice, thE first tiMe wheN i reach "cal" and foR The second time WHeN i ReACh "caL2". BuT as I mentionEd abOVe, I nEed tO FiRe a DIfferEnt noTiFIcATion when I reach cal2
thIs Is the ONReceIve:
public clasS AlertReceIVER extends broaDCaSTReceiver {

    @OverrIde
    puBlic void onrEceive(CoNtext Context, INtent inteNT) {

     CreateNoTifIcaTioN(coNTExT, "title1", "indepenDENce dAy", "Event of TodAy");
       //here i WanT to LinK thIs NotificatIon with ALaRmmaNaGer ContaINing Cal aS a DatE
        cReaTeNotIFicatiOn(conText, "TiTlE2", "SteVe jobs dIEd", "EVEnt oF tOdAy");

 alarmManager(cal and cal2 ) with dif feren t n oti fi cati on?I did this unt i l no w,
in MainActivity:
Ca lenda rc al = Ca lenda r.getIn s ta n c e() ;ca l.s et ( Ca lenda r.D ATE,19) ;  
cal.se t(C al endar.MONTH, 1 1) ;  
cal.se t(C alendar.YEAR ,20 15);
c al .se t (Cale nda r.HOU R_OF_D A Y, 21) ; 
cal.se t( C alenda r .MINUTE , 42 );      
cal.set(Cal e nd a r.SECOND, 30); 

Cale nd a rc a l2= C alendar.ge tI nstan c e();
ca l 2. s e t (Ca l endar.DATE,19 );  
cal2.s e t(C alenda r. MON T H,11);   
ca l2 . set (Calendar.Y EAR, 2015);
ca l2.set ( Calenda r .HOUR_O F_DAY,  21 ); 
ca l 2. se t(C al e nda r .M INU T E,43);    ca l2.se t(Ca l e n d ar.S ECO ND,10);
Intent alert Int ent=  ne w Int ent(t his,  A lertR eceive r.cla ss );
AlarmManager  ala rmManager  =(A lar mM anage r )  get Sys tem Service (Contex t .AL AR M _ S ER VICE);
alarmManage r. s e t( AlarmMan ager.R T C_ WA K EUP, cal .g etT imeI n M illis (),P en dingInte nt.get B ro ad cast(th is , 1, a le rtI nte nt, P e ndin gInten t.FLAG_U PDATE _ CURRENT));
ala r mManager.set( A la r m Ma n ager .RT C_WAKEUP, c al2. g etTi meIn M il lis ( ), Pe nding In t en t .getBroadcast(this,  2 , aler tInte nt, PendingIn tent.FLAG_ U P D ATE_CURR ENT) ) ;notice that Imadeto dates t o  fire no tific ation an d it is w o r king, th e n oti fic ati o n  i n onReceive w a s  fir ed  twice,  th e first  ti mewhe n I  r each "cal " and fo rth ese con d tim e  when Ire ach  " cal 2". B u t as I  ment ione dab o ve,  I need to f ireadi ffer ent  n otifi cati o n w hen I r each cal2 
th i s is  t he  OnRece ive:
public c la ss AlertRe ce ive r exte n d s Broadc astReceiver {

    @Ove r ride
   p ublic  voi d onRecei ve( Contex t c o ntext,  Inten t int en t){ 
   c re ate No tification ( c ont ext,"t itle 1", "in dependence day", " e ven t of today"); 
    / /h ere iw ant  t o  li n k  this notificat ion with A la r mM anager con t ain in g Cal a s a dat e
      cre ateNotifi cation(co nt ext, " tit le2", "ste ve jobsdied", "e v ent o f  t oday" );
 alarmManager(cal_and cal2)_with different notification?
I did_this until_now,
in_MainActivity:
Calendar cal_=_Calendar.getInstance();
cal.set(Calendar.DATE,19);  
cal.set(Calendar.MONTH,11);_ 
cal.set(Calendar.YEAR,2015);
cal.set(Calendar.HOUR_OF_DAY, 21);_
cal.set(Calendar.MINUTE, 42);  _  __
cal.set(Calendar.SECOND, 30);

Calendar cal2 = Calendar.getInstance();
cal2.set(Calendar.DATE,19);  
cal2.set(Calendar.MONTH,11);  
cal2.set(Calendar.YEAR,2015);
cal2.set(Calendar.HOUR_OF_DAY, 21);  
cal2.set(Calendar.MINUTE, 43); __ _
cal2.set(Calendar.SECOND,_10);

Intent_alertIntent = new Intent(this, AlertReceiver.class);
AlarmManager_alarmManager = (AlarmManager)  getSystemService(Context.ALARM_SERVICE);
alarmManager.set(AlarmManager.RTC_WAKEUP,_cal.getTimeInMillis(), PendingIntent.getBroadcast(this,_1, alertIntent, PendingIntent.FLAG_UPDATE_CURRENT));
alarmManager.set(AlarmManager.RTC_WAKEUP, cal2.getTimeInMillis(), PendingIntent.getBroadcast(this, 2, alertIntent, PendingIntent.FLAG_UPDATE_CURRENT));

notice_that_I made to_dates to fire notification and it is working, the_notification in onReceive was fired twice,_the first time_when_I_reach "cal" and for_the second time when I reach_"cal2". But as I mentioned above,_I need to fire a different notification_when I reach cal2
this is the_OnReceive:
public class AlertReceiver extends BroadcastReceiver_{

 _  @Override
  _ public void_onReceive(Context context,_Intent intent) {

_    createNotification(context, "title1",_"independence day", "event_of today");
    __ //here i_want_to_link this_notification with AlarmManager_containing_Cal as_a_date
     __ createNotification(context, "title2", "steve jobs died", "event_of today");
