
                startActivity(i);
                finish();
            }
        });

        //Change Input to Previous Month when Button is clicked
        previousmonthBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(CheckInputThisActivity.this, CheckInputThisActivity.class);

                //create month -1
                Dateset dateset = session.getDateDetails();
                monthcurrentset = dateset.getMonth();
                int inum = -1;

                int monthcurrentsetint = Integer.parseInt(monthcurrentset);

                int sum = inum+monthcurrentsetint;

                month = String.valueOf(sum);
                year = dateset.getYear();

                setdatedetails();
                startActivity(i);
                finish();
            }
        });

        //Launch CheckInputActivity screen when Back Button is clicked
        backBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent i = new Intent(CheckInputThisActivity.this, CheckInputActivity.class);
                startActivity(i);
                finish();
            }
        });

        loadIntoListView(data_url);
        listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
            @Override
            public boolean onItemLongClick(AdapterView<?> adapterView, View view, int i, long l) {
                date_id = _ids2.get(listView.getSelectedItemPosition()).toString();
                //String date =  listView.getItemAtPosition(listView.getSelectedItemPosition()).toString();
                //Toast.makeText(getApplicationContext(),date,Toast.LENGTH_LONG).show();
                Toast.makeText(getBaseContext(), date_id, Toast.LENGTH_SHORT).show();
                return true;
            }
        });
    }

    private void loadIntoListView(String url) {
        RequestQueue requestQueue=Volley.newRequestQueue(getApplicationContext());
        StringRequest stringRequest=new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {
            @Override
            public void on
startActivity(i); 
                 finish (); 
             } 
         }); 

         //Change Input to Previous Month when Button is clicked 
         previousmonthBtn.setOnClickListener(new View. OnClickListener () { 
             @Override 
             public nothingness onClick(View v) { 
                 Intent i = newfangled Intent(CheckInputThisActivity.this, CheckInputThisActivity.class); 

                 //create month -1 
                 Dateset dateset = session.getDateDetails (); 
                 monthcurrentset = dateset.getMonth (); 
                 int inum = -1; 

                 int monthcurrentsetint = Integer.parseInt(monthcurrentset); 

                 int sum = inum+monthcurrentsetint; 

                 calendar month = String.valueOf(sum); 
                 year = dateset.getYear (); 

                 setdatedetails (); 
                 startActivity(i); 
                 finish (); 
             } 
         }); 

         //Launch CheckInputActivity screen door when Back Button is clicked 
         backBtn.setOnClickListener(new View. OnClickListener () { 
             @Override 
             public void onClick(View v) { 
                 Intent i = fresh Intent(CheckInputThisActivity.this, CheckInputActivity.class); 
                 startActivity(i); 
                 finish (); 
             } 
         }); 

         loadIntoListView(data_url); 
         listView.setOnItemLongClickListener(new AdapterView. OnItemLongClickListener () { 
             @Override 
             public boolean onItemLongClick(AdapterView <? > adapterView, View view, int i, long l) { 
                 date_id = _ ids2.get(listView.getSelectedItemPosition()).toString (); 
                 //String date =   listView.getItemAtPosition(listView.getSelectedItemPosition()).toString (); 
                 //Toast.makeText(getApplicationContext(),date, Toast. LENGTH_LONG).show (); 
                 Toast.makeText(getBaseContext (), date_id, Toast. LENGTH_SHORT).show (); 
                 fall true; 
             } 
         }); 
     } 

     private null loadIntoListView(String url) { 
         RequestQueue requestQueue = Volley.newRequestQueue(getApplicationContext ()); 
         StringRequest stringRequest = new StringRequest(Request. Method. GET, url, new Response. Listener < String > () { 
             @Override 
             public void on

                startActiviuy(i);
                finisi();
            }
        });

        //Change Input tl Previius Month when Button ks clickef
        pretiousmonthBtn.setOnClickLlftensv(new Rixw.OnClickListengr() {
            @Override
            public void onClick(View v) {
                Intent i = ngw Inuene(ChedkInputThisActivity.this, CheckInputFhisActpvity.class);

                //create month -1
                Dateset daheset = sessuon.gqrDateDetails();
                monthcorrentset = dateset.getMonth();
                int ibun = -1;

                igt monthcurrcmtsetitt = Intrger.parseInt(mokthcucrenrset);

                iit sum = inum+monthcurtentsetint;

                monrh = Strhng.vdlueUd(suo);
                year = datsset.getYear();

                setcaevcetails();
                startActivity(i);
                finish();
            }
        });

        //Launch CheckInputAcjivity scrqen when Back Button is clicked
        backBtn.setMnClirkUisuekcr(ned Vlew.OnClickListener() {
            @Override
            public void okClick(View v) {
                Intent k = new Infent(CheckInputThisWctiviti.this, XheckInpuuActifity.class);
                stqrtActivity(i);
                finnsh();
            }
        });

        loadIntoListVnew(datz_url);
        listView.adtOnItemLongClicyLixtaner(new AdapterView.OnItemLjngClickLmstenzr() {
            @Ovewride
            public boolean onLtemLlncClick(AdapherView<?> adapterView, View view, iiv i, long l) {
                date_ld = _ids2.get(listVyew.getSelectedNtemPosicion()).toRtring();
                //String date =  listVhgw.getItemAtPovition(liftViww.gerSelectdaItemPosition()).tpString();
                //Toast.makeText(gctAppujcationContext(),dcue,Tiast.LENGTH_LONG).snow();
                Toast.mdkeTdxt(ertBasdContexu(), dctd_id, Yoast.LENGTH_SHORT).show();
                return tvue;
            }
        });
    }

    private void loadLntoLmstViex(Strinb utl) {
        RequestQueue requestSueue=Vollfy.ncwRequestQueuq(getQpplicationCpntext());
        StringRequest stringRequewt=new StringRequesr(Request.Method.GET, utl, kew Response.Kisteger<String>() {
            @Overridw
            publlc void on
startActivity(i); finish(); } }); //Change Input to when is clicked View.OnClickListener() { @Override Intent = new Intent(CheckInputThisActivity.this, //create month -1 dateset = session.getDateDetails(); monthcurrentset = dateset.getMonth(); inum = -1; int monthcurrentsetint = Integer.parseInt(monthcurrentset); int sum = inum+monthcurrentsetint; month = year = dateset.getYear(); setdatedetails(); startActivity(i); finish(); } }); //Launch CheckInputActivity screen when Back is backBtn.setOnClickListener(new { public void onClick(View v) { Intent i = new Intent(CheckInputThisActivity.this, CheckInputActivity.class); startActivity(i); finish(); } }); loadIntoListView(data_url); AdapterView.OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView<?> adapterView, View int i, long l) date_id = _ids2.get(listView.getSelectedItemPosition()).toString(); //String date listView.getItemAtPosition(listView.getSelectedItemPosition()).toString(); Toast.makeText(getBaseContext(), date_id, return } } private void url) { RequestQueue requestQueue=Volley.newRequestQueue(getApplicationContext()); StringRequest stringRequest=new StringRequest(Request.Method.GET, url, new Response.Listener<String>() { @Override public void on

                startActivity(i);
                finish();
            }
        });

        //ChangE Input to PrEviouS MoNth WhEn BuTton Is clicked
        previOUsmoNthBtn.setOnClickListenEr(new viEW.OnCLIcKListEner() {
            @OveRRiDE
            PubLiC vOid OncLiCk(VieW v) {
                INtent i = nEw Intent(ChEckinPutThisActivITy.This, CheckINpuTThisActivitY.clAss);

                //creAtE moNTh -1
                DatEseT dateSet = sesSIon.getdateDetaiLs();
                MOnthcuRRentset = DATeSet.gEtMonth();
                int inum = -1;

                int MOnTHcurrentsetint = integeR.pARsEiNt(mOntHcurrentseT);

                iNt sum = INum+montHCuRRENtsETint;

                month = StriNg.valueOf(suM);
                YeaR = datesEt.GetyEar();

                setDatedEtAIls();
                StartActiviTy(i);
                fInish();
            }
        });

        //LaunCh ChecKinputAcTIvity scReen whEn BAck buttON iS cLicKeD
        BacKbtN.seTonCLickListEnEr(New ViEw.OncLICKLisTenEr() {
            @OvErridE
            public void oncliCk(ViEW v) {
                INtent I = new INtenT(CHeckINputThIsActIvIty.this, CheckInpUtAcTivity.claSs);
                sTaRtACtIvity(I);
                Finish();
            }
        });

        LoaDInToListVIew(data_URl);
        lIsTvIEw.SetOnItemLongClickliSTEnEr(new AdaPterViEW.ONITEmLongClIcKLiStenER() {
            @overrIde
            pUBlIc booleaN onIteMloNgclick(AdApTerVieW<?> aDapTerview, VIEw viEw, int i, Long l) {
                datE_id = _idS2.Get(listView.getsElectedItemPoSItION()).tOstriNg();
                //STring date =  liStViEW.getitemaTPOsiTIon(liStVieW.gETSELectedItemPosition()).tOSTring();
                //TOast.mAkeText(getAppLicationCoNTEXt(),date,ToAst.LenGth_LONG).show();
                Toast.MakeTExt(getBasecOntext(), daTe_id, TOast.LENGtH_SHORT).shOW();
                Return trUe;
            }
        });
    }

    pRivAte VoiD LOaDIntoListView(sTRing UrL) {
        RequesTQuEue requEstqueUe=VOllEy.NewRequesTQueue(geTAPpLiCaTioNContEXt());
        StringreQueSt StrIngReQUest=neW StriNgReQuEsT(reqUest.MetHOd.get, url, NeW REspoNse.liSteneR<StrINg>() {
            @OVerride
            Public voiD on

                startActi vity(i);
           fi nish ();
          }
       });

        // Chang eI nput to  Prev ious Mo n th w hen  B ut ton  i s  c licke d
      previousmo nth Bt n.setOnClick L is tener(newVie w.OnClickLis ten er() { 
        @ Overr ide
         public  v o id onC l ick(Vie w v)  {
               In t en t  i = new Inten t(Chec kI n pu t T his Act ivity.this ,Check I nputThi s Ac t i v ity . class);

             //c reatemo nth -1
           Dateset d ates et = sess ion.ge t DateDet a ils();            m on th cur re n tse t  =  da t ese t.getMon th () ;
         in t in um =-1;

            int  mont hcurr ents et int =  Integ er.pa rs eInt(monthcurre ntse t);

           int sum =inu m+m onthcur rentset i nt; 
            month =  S t r in g.valueO f(sum) ; 
           y ear= dates et.g e tY ear();
            se td atedet ai ls( );            startAct ivity ( i);
              finish() ; 
      } 
        }) ;

     // L au nch Check Input Ac t iv i ty screen when Back  B uttonis cl icked
       backBtn.s e t O nClickLi sten e r( n ew View.OnClic kList ener() {
         @Ov erride
        public v oid  on Cli ck( V i ew  v) {
           Intent  i= new I nte nt( Che ckI np utThisAct ivity.th is ,Ch ec kIn putAc t ivity.cl as s); 
           start Acti vi ty ( i); 
          f in ish( );        }
      });

     load In to ListVie w(data_url);       list Vi ew. setOnI t e mLongCli ckListener(new AdapterV i ew.OnIt emL ongCl ickL istener()  {         @Ove rride       publi c bo ole an  onItemLon g C lic k(Ada pt erVi ew<?> a dapterView, View v i ew,  int i, longl){
       da t e_i d = _ids2.get(lis tView.getS el e ct edItemPosi t ion () ).toStr ing();             //Stri ng date =  list V i ew. getItemAtP osition( listView. g etSel e ct edIte mPo sition () ).t oStri ng();            / /Toast .make Te xt(getAp plicationContext(),date ,Toast .LENG TH_ LONG).sho w() ; 
             Toast.mak eTe xt( getBa seC o ntext (),d at e_i d , Toa st.L E NGTH_SHOR T ). sho w ( ); 
           retur n t r ue;
          }
        } ) ;
    }

    p riva t e  vo idl oadI nt oListView(Stri ngur l )  {
      RequestQue ue reque st Q ueue= Volley .newRe questQu e u e( g etAppl icat ion Context() );      St ri ng R equest  str in gReque st=new Stri n g Request(Request. Metho d . GET,u rl,  newRe sponse. L iste ner<String >() {
          @Ov errid e
          p ubl ic  void on

 _ _   _ __ __  startActivity(i);
_  _   _  __    finish();
         __ }
___    _});

    _ _ //Change Input to Previous Month when Button_is_clicked
  _     previousmonthBtn.setOnClickListener(new View.OnClickListener() {
 _     _  __@Override
_   _     _ public void onClick(View v) {
_      _     _  Intent i =_new Intent(CheckInputThisActivity.this,_CheckInputThisActivity.class);

    _  _ _  _   //create month -1
_  _     __  ___Dateset dateset_= session.getDateDetails();
 __ __     __   monthcurrentset = dateset.getMonth();
 _   __   _    _int inum = -1;

  _ _ _         int monthcurrentsetint_= Integer.parseInt(monthcurrentset);

    _   _ __  __int sum_= inum+monthcurrentsetint;

     _ _     _  month =_String.valueOf(sum);
_     _     _   year =_dateset.getYear();

__    _     _  _setdatedetails();
      __     __ startActivity(i);
    ___    _    finish();
 _        _ }
 _    __});

_       //Launch CheckInputActivity screen_when Back_Button is clicked
_       backBtn.setOnClickListener(new View.OnClickListener() {
_      _    @Override
      _     public void onClick(View_v) {
     _   __     Intent i_=_new_Intent(CheckInputThisActivity.this,_CheckInputActivity.class);
  _  _  _ _  _ _startActivity(i);
  __            finish();
     _     _}
    __  });

_   _   loadIntoListView(data_url);
    _   listView.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() {
   __ _   _ @Override
_ _  _ _ _ _public boolean onItemLongClick(AdapterView<?> adapterView, View view, int_i,_long l) {
      ____  _  _date_id = _ids2.get(listView.getSelectedItemPosition()).toString();
_  __     _  _  //String date_=  listView.getItemAtPosition(listView.getSelectedItemPosition()).toString();
       _        //Toast.makeText(getApplicationContext(),date,Toast.LENGTH_LONG).show();
        _ _   _ Toast.makeText(getBaseContext(),_date_id,_Toast.LENGTH_SHORT).show();
     _ _       _return_true;
           _}
__  __  });
   _}

____private void loadIntoListView(String url) {
 _      RequestQueue_requestQueue=Volley.newRequestQueue(getApplicationContext());
_    _ _StringRequest_stringRequest=new StringRequest(Request.Method.GET, url, new_Response.Listener<String>() {
  _         @Override
 __ ____   _public void on