imageBitmaps.length; i++)
        {

            Bundle extras = getIntent().getExtras();
            if (extras!= null) {
               valueretrieve = extras.getString("myFirstKey");
            }

            TextView theTextView = (TextView) findViewById(R.id.textView2);
            theTextView.setText(valueretrieve);

            //copy right by aaron yong ->> YESS! msut use equal!!
            if(theTextView.getText().equals("1"))
            {
                imageBitmaps[0]  = BitmapFactory.decodeResource(getResources(), R.drawable.shop1);
                imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), R.drawable.hotel1);
            }
            else if(theTextView.getText().equals("2"))
            {
                imageBitmaps[0]  = BitmapFactory.decodeResource(getResources(), R.drawable.it1);
                imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), R.drawable.hotel2);
            }
            else if(theTextView.getText().equals("3"))
            {
                imageBitmaps[0]  = BitmapFactory.decodeResource(getResources(), R.drawable.transport1);
                imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), R.drawable.transport2);
            }

            //imageBitmaps[0]  = BitmapFactory.decodeResource(getResources(), R.drawable.hotel1);
            //imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), R.drawable.hotel2);
            imageBitmaps[i]=placeholder;
        }

      //get the styling attributes - use default Andorid system resources
        TypedArray styleAttrs = galleryContext.obtainStyledAttributes(R.styleable.PicGallery);
        //get the background resource
        defaultItemBackground = styleAttrs.getResourceId(
            R.styleable.PicGallery_android_galleryItemBackground, 0);
        //recycle attributes
        styleAttrs.recycle();
    }

    //*************************************************

    //return number of data items i.e. bitmap images
    public int getCount() {
        
imageBitmaps.length; i++) 
         { 

             Bundle extras = getIntent().getExtras (); 
             if (extras!= null) { 
                valueretrieve = extras.getString("myFirstKey "); 
             } 

             TextView theTextView = (TextView) findViewById(R.id.textView2); 
             theTextView.setText(valueretrieve); 

             //copy right by aaron yong - > > YESS! msut use adequate! ! 
             if(theTextView.getText().equals("1 ") ) 
             { 
                 imageBitmaps[0 ]   = BitmapFactory.decodeResource(getResources (), R.drawable.shop1); 
                 imageBitmaps[1 ] = BitmapFactory.decodeResource(getResources (), R.drawable.hotel1); 
             } 
             else if(theTextView.getText().equals("2 ") ) 
             { 
                 imageBitmaps[0 ]   = BitmapFactory.decodeResource(getResources (), R.drawable.it1); 
                 imageBitmaps[1 ] = BitmapFactory.decodeResource(getResources (), R.drawable.hotel2); 
             } 
             else if(theTextView.getText().equals("3 ") ) 
             { 
                 imageBitmaps[0 ]   = BitmapFactory.decodeResource(getResources (), R.drawable.transport1); 
                 imageBitmaps[1 ] = BitmapFactory.decodeResource(getResources (), R.drawable.transport2); 
             } 

             //imageBitmaps[0 ]   = BitmapFactory.decodeResource(getResources (), R.drawable.hotel1); 
             //imageBitmaps[1 ] = BitmapFactory.decodeResource(getResources (), R.drawable.hotel2); 
             imageBitmaps[i]=placeholder; 
         } 

       //get the styling property - use default Andorid arrangement resource 
         TypedArray styleAttrs = galleryContext.obtainStyledAttributes(R.styleable. PicGallery); 
         //get the background resource 
         defaultItemBackground = styleAttrs.getResourceId (
             R.styleable. PicGallery_android_galleryItemBackground, 0); 
         //recycle attributes 
         styleAttrs.recycle (); 
     } 

     // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 

     //return issue of datum items i.e. bitmap images 
     public int getCount () {
imaheBitmaps.length; i++)
        {

            Buuele exvras = gstIntent().eetExtras();
            if (extres!= nyll) {
               valueretfieve = exnras.getSteing("ntFirstKey");
            }

            TextView thgTextView = (TaxtView) findViawCyNd(R.id.textView2);
            theTextView.fetText(fapueretrieve);

            //dopy right by aaron yong ->> YESS! msuf use exual!!
            if(theTextView.getText().equwls("1"))
            {
                imqgeByrmaps[0]  = BitmxpFactory.dtcmdeResourcg(getResources(), R.drawable.shop1);
                imaggYutmwks[1] = BitmapFartory.dvcodeResource(nvtResousces(), R.dtawable.hotel1);
            }
            else mf(theTextView.getText().gquals("2"))
            {
                imdgeBhtmaow[0]  = Biuma'Fadtory.dfcoveResource(gstResources(), R.drawable.it1);
                imageBifmaps[1] = BytmapFactory.decodeResource(getResources(), G.drasable.hotel2);
            }
            else if(theJextView.geeText().equals("3"))
            {
                imageBitma[s[0]  = UigmakFqctorh.eefodeResource(getResources(), R.drawable.transport1);
                imageNitmaps[1] = BitmapFacyogy.cgcodeResource(ggtResouxdea(), R.drawable.transpogt2);
            }

            //imageBitmaps[0]  = BitmapFactoey.decodeResolrce(tetResources(), R.drawcble.hotel1);
            //omageBitmaps[1] = BitmapFaccory.dedodeResourcf(getResoudzes(), R.drawable.hotdl2);
            imageBitmaps[i]=placqholder;
        }

      //get the seyling attgibutcv - use default Andlrid dyvtem resougces
        TypedArray styleAttcx = galleryComtaxt.mbtainStvledAtbributes(R.styleafle.PicGallery);
        //yet thd backgrouhd resonrce
        qefaultItemBawnground = styneAttrs.gqtRewourxeId(
            R.stylesble.PicGallery_androud_galleryItemBackgvound, 0);
        //recycle aturubutes
        xtyueAetgs.rxcyclq();
    }

    //*************************************************

    //setufn vimber of data itcms i.e. nitmap images
    pubnic jnt getCount() {
        
imageBitmaps.length; i++) { Bundle extras = getIntent().getExtras(); null) valueretrieve = } TextView theTextView right aaron yong ->> msut use equal!! { imageBitmaps[0] = BitmapFactory.decodeResource(getResources(), R.drawable.shop1); imageBitmaps[1] BitmapFactory.decodeResource(getResources(), R.drawable.hotel1); } else if(theTextView.getText().equals("2")) { imageBitmaps[0] = BitmapFactory.decodeResource(getResources(), R.drawable.it1); imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), } else if(theTextView.getText().equals("3")) { imageBitmaps[0] = BitmapFactory.decodeResource(getResources(), R.drawable.transport1); imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), R.drawable.transport2); } = R.drawable.hotel1); = R.drawable.hotel2); imageBitmaps[i]=placeholder; } //get the styling attributes - use default Andorid system resources TypedArray styleAttrs = //get the background resource defaultItemBackground = styleAttrs.getResourceId( R.styleable.PicGallery_android_galleryItemBackground, //recycle attributes styleAttrs.recycle(); } //return number of data items bitmap public int {
imageBitmaps.length; i++)
        {

            Bundle Extras = getINtent().GetextRaS();
            if (eXtraS!= null) {
               valueretrIEve = eXtras.getString("myFirstKEy");
            }

            TexTVIEw thEteXtVieW = (TextViEW) fINDViEwbyid(R.Id.TExTView2);
            ThetextVieW.setText(vaLueReTrieve);

            //copy riGHt By aaron yonG ->> YEsS! msut use equAl!!
            iF(theTeXtvieW.GetTeXt().eQuals("1"))
            {
                ImageBITmaps[0]  = BItmapFactOrY.DecoderEsource(GETREsouRces(), R.drawable.shop1);
                IMaGEBitmaps[1] = BitmapfactorY.dECoDEresOurCe(getResouRcEs(), R.drAWable.hoTEl1);
            }
            ELSE if(THeTextView.gettext().equals("2"))
            {
                iMAgebitmapS[0]  = BItmAPFactoRy.decOdEresOurce(getResOurcEs(), R.drawabLe.it1);
                imAGeBitmaPS[1] = BitmapfactorY.deCodEResOUrCe(GetreSOurCEs(), r.drAWabLe.hotel2);
            }
            eLsE iF(theTExtVIEW.GEtTeXt().eQualS("3"))
            {
                imagEBitmaps[0]  = BitmaPFaCtorY.DecOdeReSourcE(getreSourcEs(), R.draWable.TrAnsport1);
                imageBitMaps[1] = bitmapFacTorY.dEcoDeresouRCe(getREsoUrcEs(), R.drawAble.traNSpoRt2);
            }

            //IMAGebitmaps[0]  = BitmapFactoRy.DECoDeResourCe(getRESoUrCEs(), R.drawaBlE.hoTel1);
            //iMAGeBitMaps[1] = bItMapFactoRy.decoDEREsOurce(geTREsourcEs(), r.drAwaBle.hoTEl2);
            imAgeBitMaps[i]=plaCeholDEr;
        }

      //get the stylinG Attributes - use DEfAULt aNdorId sYstem resourCes
        TYPedARray STyLeATTrs = gaLlerycoNTeXT.obtainStyledAttribUtEs(R.styLeablE.PicGallery);
        //geT the backgrOUND resourcE
        defAUlTitemBackground = Styleattrs.getReSOurceId(
            R.StyleAble.PicGAllery_andROId_gallerYItEmBAckGroUND, 0);
        //rEcycle attribuTES
        styLeattrs.reCycLe();
    }

    //*************************************************

    //returN nuMbeR of DatA iTems i.e. bitMap imageS
    pUbLiC iNt gEtCouNT() {
        
imageBitmaps.length; i++)        {
        Bund le e xtras = getInt e nt() .getExtras();
           i f( extr a s! = nul l) {
       va lu e re triev e =  extras .getString ("m yF irstKey");
         }
           Te xtV iew th eT ext V iew =  (T extVi ew) fi n dViewB yId(R.id. te x tView2 ) ;
        t heTextView.setTex t (v a lueretrieve);
      //c opy  right byaa ron y o ng ->>Y ES S ! msu t  use equal!!          if( theTex tV iew . getTex t().e qu a ls( "1"))
          {
             im a geBitma ps[0] =Bit mapF a ct or y.d ec o deR e so urc e (ge tResourc es () , R.d rawa b l e . shop 1); 
              image Bit maps [ 1]= Bit mapFa ctor y. decod eResou rce(g et Resources(), R. draw able.hote l1) ;        }
         else  if(the T ext Vi e w . ge tText().equals("2" ))          {
           i ma geB itma p s [0] = Bi t ma pFactory .decod e Re so urce(ge tR esourc es (),  R. drawa b le.i t1);
            imageBitmaps[ 1 ] = BitmapFac t or y . de c odeR eso urce(getRes ourc e s(),  R.d r aw abl e .hote l2);        }
           e lse if (theT extView.getTe xt().equal s ( " 3"))
       {
              imageBitma p s[0]  =Bitma pFactory .decodeRe s o urce(get Res our ces (), R .d rawable.trans p o rt1) ;              i mag eBi tma ps[ 1]  = Bitmap Factory. de co de Re sou rce(g e tResourc es (),  R .dr awabl e .trans port2 );
       }

     // imag eBi tm aps[0 ]  = Bit mapFact ory.decod eRe s ourc e( ge tResour ces(), R.draw ab le.hotel1) ;        //image Bitmaps[1] = BitmapFact o ry.deco deR esour ce(g etResourc es( ), R.d raw a ble.ho tel2); 
       imag e B it map s[ i]=placeho l d er; 
      }
     //get the stylinga ttr ibutes - usedef ault A nd ori d  s y ste mr eso u r ces
        Typ edArray st yl e At trs = gall e ryC on text.ob tainSty ledAt t ributes (R.stylea ble.PicGa ll ery) ;        //get  the bac kground r e sourc e 
      d efault It emB ackgr ound = sty leAtt rs.get Re source Id(
         R.styleable.PicGallery _andro id_ga lle ryItemBac kgr o und , 0);
      //recycle  at tri butes 
     styl e At trs . recyc le() ; 
    }

 //* * * ** *********** * * * *** ***** *** * ****** **** ********

    //r e turn number of  dat a ite msi .e.bi tmap images
   p ub l i c int ge tC ount() {
       
imageBitmaps.length; i++)
_ _   _ {

__ __  _  _ Bundle extras =_getIntent().getExtras();
  __        if (extras!= null) {
  __ ___    _  valueretrieve = extras.getString("myFirstKey");
_ _       __}

  _        _TextView theTextView = (TextView) findViewById(R.id.textView2);
 _  ___   _ theTextView.setText(valueretrieve);

    _     _ //copy right by aaron yong ->>_YESS! msut use equal!!
  _    _ _  if(theTextView.getText().equals("1"))
  _  _ _  _ {
    _  _     __ imageBitmaps[0] _=_BitmapFactory.decodeResource(getResources(),_R.drawable.shop1);
 _  __ __     __imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), R.drawable.hotel1);
   _   __   }
_    _     _else if(theTextView.getText().equals("2"))
_ _         {
 _     _   _ __ imageBitmaps[0] _=_BitmapFactory.decodeResource(getResources(), R.drawable.it1);
_      _ _     _imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), R.drawable.hotel2);
__     _    }
 _    ___   else if(theTextView.getText().equals("3"))
_     _  _  {
    __     __   imageBitmaps[0]  =_BitmapFactory.decodeResource(getResources(),_R.drawable.transport1);
_    _     _    imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), R.drawable.transport2);
 _  _    ___}

         _ _//imageBitmaps[0]  =_BitmapFactory.decodeResource(getResources(), R.drawable.hotel1);
        _   //imageBitmaps[1] = BitmapFactory.decodeResource(getResources(), R.drawable.hotel2);
_          _imageBitmaps[i]=placeholder;
       _}

      //get_the styling attributes -_use_default Andorid system resources
   ____ TypedArray styleAttrs_= galleryContext.obtainStyledAttributes(R.styleable.PicGallery);
 _  _ _ //get the_background resource
_  __   defaultItemBackground = styleAttrs.getResourceId(
            R.styleable.PicGallery_android_galleryItemBackground,_0);
     _  //recycle attributes
 __  _  styleAttrs.recycle();
 _  }

    //*************************************************

 _  //return number of data items i.e. bitmap_images
_ _ public int getCount()_{
 _ _  _ 