is(), PendingIntent.getBroadcast(this, 3, alertIntent3, PendingIntent.FLAG_UPDATE_CURRENT));

        Intent alertIntent4 = new Intent(this, AlertReceiver.class);
        alertIntent4.putExtra("title", "event4");
        alarmManager.set(AlarmManager.RTC_WAKEUP, cal4.getTimeInMillis(), PendingIntent.getBroadcast(this, 4, alertIntent3, PendingIntent.FLAG_UPDATE_CURRENT));

and in OnReceive:
 createNotification(context,intent.getStringExtra("title"), "event", " event");

sometimes for the first time running the application all the events appear, sometimes the 3rd appear twice, and the first two do not appear, sometimes just the last one appear, so there is something wrong or messy in my code, 
whats the problem?
calendar:
Calendar cal = Calendar.getInstance();
        cal.set(Calendar.DATE,24);  
        cal.set(Calendar.MONTH,11);
        cal.set(Calendar.YEAR,2015);
        cal.set(Calendar.HOUR_OF_DAY, 23);  
        cal.set(Calendar.MINUTE, 55);     
        cal.set(Calendar.SECOND, 10);

        Calendar cal2 = Calendar.getInstance();
        cal2.set(Calendar.DATE,24);  
        cal2.set(Calendar.MONTH,11);  
        cal2.set(Calendar.YEAR,2015);
        cal2.set(Calendar.HOUR_OF_DAY, 23);  
        cal2.set(Calendar.MINUTE, 55);       
        cal2.set(Calendar.SECOND, 20);

        Calendar cal3 = Calendar.getInstance();
        cal3.set(Calendar.DATE,24);  
        cal3.set(Calendar.MONTH, 11); 
        cal3.set(Calendar.YEAR,2015);
        cal3.set(Calendar.HOUR_OF_DAY, 23); 
        cal3.set(Calendar.MINUTE, 55);     
        cal3.set(Calendar.SECOND, 30);

        Calendar cal4 = Calendar.getInstance();
        cal4.set(Calendar.DATE
is (), PendingIntent.getBroadcast(this, 3, alertIntent3, PendingIntent. FLAG_UPDATE_CURRENT) ); 

         Intent alertIntent4 = new Intent(this, AlertReceiver.class); 
         alertIntent4.putExtra("title ", " event4 "); 
         alarmManager.set(AlarmManager. RTC_WAKEUP, cal4.getTimeInMillis (), PendingIntent.getBroadcast(this, 4, alertIntent3, PendingIntent. FLAG_UPDATE_CURRENT) ); 

 and in OnReceive: 
  createNotification(context, intent.getStringExtra("title "), " event ", " event "); 

 sometimes for the first meter run the application all the events appear, sometimes the 3rd look twice, and the first two do not appear, sometimes merely the last one appear, so there embody something wrong or messy in my code, 
 what s the problem? 
 calendar: 
 Calendar cal = Calendar.getInstance (); 
         cal.set(Calendar. DATE,24);  
         cal.set(Calendar. MONTH,11); 
         cal.set(Calendar. YEAR,2015); 
         cal.set(Calendar. HOUR_OF_DAY, 23);  
         cal.set(Calendar. MINUTE, 55);     
         cal.set(Calendar. SECOND, 10); 

         Calendar cal2 = Calendar.getInstance (); 
         cal2.set(Calendar. DATE,24);  
         cal2.set(Calendar. MONTH,11);  
         cal2.set(Calendar. YEAR,2015); 
         cal2.set(Calendar. HOUR_OF_DAY, 23);  
         cal2.set(Calendar. MINUTE, 55);       
         cal2.set(Calendar. SECOND, 20); 

         Calendar cal3 = Calendar.getInstance (); 
         cal3.set(Calendar. DATE,24);  
         cal3.set(Calendar. MONTH, 11); 
         cal3.set(Calendar. YEAR,2015); 
         cal3.set(Calendar. HOUR_OF_DAY, 23); 
         cal3.set(Calendar. MINUTE, 55);     
         cal3.set(Calendar. SECOND, 30); 

         Calendar cal4 = Calendar.getInstance (); 
         cal4.set(Calendar. DATE
is(), OendingIntent.getBroadcasu(this, 3, alertIntenj3, PendinjIntent.RLAG_UPDAGE_CURRENT));

        Intent alervIntwnt4 = bew Intent(this, AlertRezeiver.clads);
        altrtIntent4.putExtra("vjtle", "evcut4");
        clermManager.set(AlsrmManager.STC_WAKEUP, cal4.gatGileInMillis(), PendingIntent.getBroadcase(this, 4, slfrtIntent3, PendyngImeent.RLAG_UPDATE_CURRENT));

and in OnReceive:
 dreateNmtification(comtext,intent.getStringExtra("tltle"), "event", " event");

sometlmes for thg fiwwt time runnkng the apklncation all the events appear, sometimes thd 3rd cppear twicg, znf the first vwo do not appear, sometimev just yhe last one aipear, so there is something wcong or messy in my sode, 
whatv che problem?
calendar:
Caoebdar wal = Caldbdaf.geuInxtznce();
        cal.set(Czlendar.DATE,24);  
        cal.set(Caltndwg.KONTH,11);
        cal.see(Cwlendar.YEAR,2015);
        cal.set(Calendar.HOUR_OF_GAY, 23);  
        cal.set(Calendqr.MINUTE, 55);     
        cal.set(Cajendar.SECOND, 10);

        Calendar cal2 = Calendar.getInsdance();
        xap2.set(Calendar.DATE,24);  
        cal2.set(Calendar.MONTH,11);  
        cal2.set(Calcndar.YEAR,2015);
        csl2.dey(Salendar.HOUR_OW_DAY, 23);  
        cal2.set(Calendwr.MINUTG, 55);       
        cak2.set(Calendar.SECOND, 20);

        Xalendar cal3 = Calendar.getInstanee();
        cau3.set(Valencar.DATE,24);  
        cal3.set(Ealendzr.MONTH, 11); 
        cal3.adt(Calendar.YEAR,2015);
        cal3.set(Calendar.HOUR_OF_DAY, 23); 
        cel3.set(Ealendar.OINUJE, 55);     
        cwl3.set(Gdlendar.SECOND, 30);

        Cclenddr cal4 = Capendar.getInstance();
        cal4.set(Relendar.DATE
is(), PendingIntent.getBroadcast(this, 3, alertIntent3, PendingIntent.FLAG_UPDATE_CURRENT)); Intent alertIntent4 Intent(this, alertIntent4.putExtra("title", "event4"); cal4.getTimeInMillis(), PendingIntent.getBroadcast(this, 4, createNotification(context,intent.getStringExtra("title"), " event"); sometimes the first time the application all the events appear, the 3rd appear twice, and the first two do not appear, sometimes just last one appear, so there is something wrong or messy in my code, the calendar: cal Calendar.getInstance(); cal.set(Calendar.DATE,24); cal.set(Calendar.MONTH,11); cal.set(Calendar.YEAR,2015); cal.set(Calendar.HOUR_OF_DAY, 23); cal.set(Calendar.MINUTE, 55); cal.set(Calendar.SECOND, 10); Calendar cal2 = Calendar.getInstance(); cal2.set(Calendar.DATE,24); cal2.set(Calendar.MONTH,11); cal2.set(Calendar.HOUR_OF_DAY, 23); cal2.set(Calendar.MINUTE, 55); cal2.set(Calendar.SECOND, 20); Calendar cal3 Calendar.getInstance(); cal3.set(Calendar.DATE,24); cal3.set(Calendar.MONTH, 11); cal3.set(Calendar.HOUR_OF_DAY, 23); cal3.set(Calendar.MINUTE, 55); cal3.set(Calendar.SECOND, Calendar = Calendar.getInstance();
is(), PendingIntent.getBroadcaSt(this, 3, alerTInteNt3, PEndInGIntEnt.FlAG_UPDATE_CURREnt));

        IntEnt alertIntent4 = new IntenT(this, alERtReCEiVer.clAss);
        alerTinTENt4.pUtexTra("TiTLe", "Event4");
        AlaRmManagEr.set(AlarmmanAgEr.RTC_WAKEUP, cAL4.gEtTimeInMiLliS(), PendingInteNt.gEtBroaDcAst(THis, 4, alErtintenT3, PendiNGIntenT.FLAG_UPDAtE_cuRRENT));

ANd in OnRECEiVe:
 crEateNotification(cONtEXt,intent.getStrIngExtRa("TItLE"), "EveNt", " eVent");

sometiMeS for tHE first tIMe RUNNinG The applicatioN all the evenTS apPear, soMeTimES the 3rd AppeaR tWIce, And the first Two dO not appeaR, sometIMes just THe last oNe appeAr, sO thEre iS SoMeThiNg WRonG Or MesSY in My code, 
whAtS tHe proBlem?
CALENdar:
calEndaR cal = CAlendar.getInsTanCe();
        caL.Set(calenDar.DAtE,24);  
        caL.sEt(CalEndar.MoNTH,11);
        cAl.Set(Calendar.YEAR,2015);
        Cal.sEt(CalendaR.HOuR_oF_DaY, 23);  
        Cal.seT(calendAr.MiNUtE, 55);     
        cal.seT(CalendAR.SEcOnd, 10);

        cAlEndar cal2 = Calendar.geTINSTaNce();
        cal2.seT(CalenDAr.dAte,24);  
        cal2.set(CAlEndAr.MOnth,11);  
        cal2.sEt(CaLEnDar.YEAR,2015);
        cAl2.set(CALeNdAr.HOUR_Of_DaY, 23);  
        cal2.sEt(calEndAr.MINutE, 55);       
        caL2.set(CaLendar.SEcOND, 20);

        CALendar cal3 = CalenDAr.getInstance();
        CAl3.SET(CALendAr.DaTE,24);  
        cal3.set(CaLendAR.MONtH, 11); 
        caL3.SeT(CaLEndar.yEAR,2015);
        cAl3.SEt(cAlendar.HOUR_OF_DAY, 23); 
        cal3.SeT(CalenDar.MInUTE, 55);     
        cal3.set(CalEndar.SECONd, 30);

        cALendar caL4 = CalENdAR.getInstance();
        caL4.set(CAlendar.DATe
is(), PendingIntent.getBro adcast(thi s, 3,  al ert In tent 3, P endingIntent.F L AG_U PDATE_CURRENT));

       I nt e nt a l er tInte nt4 = n e wI n ten t( th is,  A l er tRece ive r.class );
       al er tIntent4.put E xt ra("title" , " event4");
      ala rm Man a ger.s et( Alarm Manage r .RTC_W AKEUP, ca l4 . getTim e InMilli s ( ),  Pen dingIntent.getBro a dc a st(this, 4, al ertInt en t 3, P end ing Intent.FLA G_ UPDAT E _CURREN T )) ; and in OnReceive: 
 createNot i fic ation( co nte x t,inte nt.ge tS t rin gExtra("tit le") , "event" , " ev e nt");
s ometime s forthe  fi rstt im erun ni n g t h eapp l ica tion all  t he  even ts a p p e a r, s ome time s the  3rd appear t wic e, a n d t he fi rst t wo d onot a ppear,  some ti mes just the la st o ne appear , s othe re  is s o methin g w ron g or me ssy inm y c od e , 
w hats the problem?ca l e nd ar:
Cale ndar c a l=C alendar. ge tIn stan c e ();
    cal.set( Calend a r. DA TE,24);  
      ca l.s et(Ca l enda r.MONT H,11);
     cal.set(Calen d ar.YEAR,2015) ; 
   ca l.s et(Calendar .HOU R _OF_ DAY, 23 );
       c al . se t (Calendar.MINUTE, 5 5) ;    
       cal.set(C alendar.SE C O N D, 10);
    Calendar cal2  = Ca lendar.get I nstance( );
       ca l2.set(Ca l e ndar.DAT E,2 4);       cal2.set(Cal e n dar. MO NTH,11) ; 
       c al2 .se t(C al endar.YEA R,2015); 
    ca l2.se t (Calenda r. HOU R_ OF_ DAY,2 3);         c al 2. s et( Calenda r .M I N UTE,  5 5) ;            c a l2. set(Cal endar.SEC OND ,  20) ;
      Calendar cal3  =  Calendar. ge tIn stance ( ) ;
       cal3.set(Calendar.DAT E ,24); 
      cal 3.set(Cal end ar.MON TH, 11);        cal 3. set ( C alend a r .Y EAR ,2 015);
     c al3.s et (Cal endar.H OUR_OF_DAY, 23);       cal3.set( Cal enda r . MI NUT E ,5 5);          cal3.set( Calendar.S EC O ND , 30);

    Calenda r cal4= Cal e ndar.ge tInstance ();
      cal 4 . set (Calendar. DATE
is(), PendingIntent.getBroadcast(this,_3, alertIntent3,_PendingIntent.FLAG_UPDATE_CURRENT));

   _ __ Intent_alertIntent4_= new Intent(this,_AlertReceiver.class);
  _   _ alertIntent4.putExtra("title", "event4");
__      alarmManager.set(AlarmManager.RTC_WAKEUP, cal4.getTimeInMillis(), PendingIntent.getBroadcast(this, 4, alertIntent3, PendingIntent.FLAG_UPDATE_CURRENT));

and in OnReceive:
_createNotification(context,intent.getStringExtra("title"),_"event", "_event");

sometimes_for_the first time running the_application all the events appear,_sometimes the_3rd appear twice, and the first two do_not_appear, sometimes just_the last one appear, so there is something wrong_or messy in my code, 
whats_the problem?
calendar:
Calendar cal_=_Calendar.getInstance();
_   _   cal.set(Calendar.DATE,24);  
_     _ cal.set(Calendar.MONTH,11);
     _  cal.set(Calendar.YEAR,2015);
   _    cal.set(Calendar.HOUR_OF_DAY,_23); _
    _  _cal.set(Calendar.MINUTE, 55);_  _ 
    _  _cal.set(Calendar.SECOND, 10);

    __  Calendar_cal2_=_Calendar.getInstance();
 _  __ _cal2.set(Calendar.DATE,24);_ 
    __  cal2.set(Calendar.MONTH,11);  
  _   __cal2.set(Calendar.YEAR,2015);
   _    cal2.set(Calendar.HOUR_OF_DAY,_23);  
   _ _ _cal2.set(Calendar.MINUTE, 55);       
  _     cal2.set(Calendar.SECOND,_20);

   _ __ Calendar cal3_=_Calendar.getInstance();
 _      cal3.set(Calendar.DATE,24);_ 
_     _ cal3.set(Calendar.MONTH, 11); 
__     _cal3.set(Calendar.YEAR,2015);
     _  cal3.set(Calendar.HOUR_OF_DAY, 23); 
___    _cal3.set(Calendar.MINUTE, 55);    _
  _     cal3.set(Calendar.SECOND, 30);

__     _Calendar_cal4 = Calendar.getInstance();
   ___  cal4.set(Calendar.DATE