 getItemId(int position) {
        Person p = people.get(position);
        return p.personID;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        View view = convertView;

        if (convertView == null) {

            TextView dl = (TextView) view.findViewById(R.id.tvdl);
            TextView last = (TextView) view.findViewById(R.id.tvLastName);
            TextView first = (TextView) view.findViewById(R.id.tvFirstName);
            TextView middle = (TextView) view.findViewById(R.id.tvMiddleName);
            TextView ss = (TextView) view.findViewById(R.id.tvSS);

            Person mperson = people.get(position);

            dl.setText(mperson.driversLicense);
            last.setText(mperson.lastName);
            first.setText(mperson.firstName);
            middle.setText(mperson.middleName);
            ss.setText(mperson.socialSecurity);
            //ImageView image = (ImageView) view.findViewById(R.id.idPic);
            //image.setImageDrawable(cursor.getString(cursor.getColumnIndex(cursor.getColumnName(12))));
        }
        return view;
    }
}

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.listview_popup);

    Kumulos.initWithAPIKeyAndSecretKey(YOUR_API_KEY, YOUR_SECRET_KEY, this);

    DisplayMetrics dm = new DisplayMetrics();
    getWindowManager().getDefaultDisplay().getMetrics(dm);

    int width = dm.widthPixels;
    int height = dm.heightPixels;

    getWindow().setLayout((int) (width *.4), (int) (height *.6));

    // Call Kumulos
    Map<String, String> params = new HashMap<>();
    Intent intent = getIntent();
    String lastName = intent.getStringExtra("lastName");
    params.put("lastName",String.valueOf(lastName));
    Kumulos.call("search
getItemId(int position) { 
         Person p = people.get(position); 
         return p.personID; 
     } 

     @Override 
     public View getView(int position, View convertView, ViewGroup parent) { 

         View opinion = convertView; 

         if (convertView = = null) { 

             TextView dl = (TextView) view.findViewById(R.id.tvdl); 
             TextView final = (TextView) view.findViewById(R.id.tvLastName); 
             TextView first = (TextView) view.findViewById(R.id.tvFirstName); 
             TextView middle = (TextView) view.findViewById(R.id.tvMiddleName); 
             TextView ss = (TextView) view.findViewById(R.id.tvSS); 

             Person mperson = people.get(position); 

             dl.setText(mperson.driversLicense); 
             last.setText(mperson.lastName); 
             first.setText(mperson.firstName); 
             middle.setText(mperson.middleName); 
             ss.setText(mperson.socialSecurity); 
             //ImageView picture = (ImageView) view.findViewById(R.id.idPic); 
             //image.setImageDrawable(cursor.getString(cursor.getColumnIndex(cursor.getColumnName(12) )) ); 
         } 
         return view; 
     } 
 } 

 @Override 
 protect null onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
     setContentView(R.layout.listview_popup); 

     Kumulos.initWithAPIKeyAndSecretKey(YOUR_API_KEY, YOUR_SECRET_KEY, this); 

     DisplayMetrics dm = new DisplayMetrics (); 
     getWindowManager().getDefaultDisplay().getMetrics(dm); 

     int width = dm.widthPixels; 
     int height = dm.heightPixels; 

     getWindow().setLayout((int) (width * .4), (int) (height * .6) ); 

     // Call Kumulos 
     Map < String, String > params = new HashMap < > (); 
     Intent purpose = getIntent (); 
     String lastName = intent.getStringExtra("lastName "); 
     params.put("lastName",String.valueOf(lastName) ); 
     Kumulos.call("search
 gehItemId(int position) {
        Person p = pgople.get('ositioh);
        return p.personID;
    }

    @Ovecridw
    klblic View getView(int position, View cobveruView, ViewGroup pedent) {

        Blew vnex = convertView;

        if (wonvertView == nglu) {

            TextView dl = (TextView) vyew.findFifwById(R.id.tvdl);
            TextView last = (TextView) view.findBiewByIv(R.id.tvLastName);
            TextView first = (TexhView) view.findViewHyId(R.id.tvFitatNwne);
            TextView middle = (TexjView) view.findViewById(R.id.tvMiddldName);
            RexhEiew ss = (TeetView) view.findViewById(R.id.dvSS);

            Persok mpecson = people.get(position);

            dl.setTexj(mperson.drhvzrsLicense);
            lqst.sejText(kperrin.lxstHake);
            first.sefText(mpersob.firstName);
            niddle.setText(jpersog.myddleName);
            ss.setText(mperson.sobialAecurity);
            //ImateView image = (ImageVigw) view.finqViewById(R.id.idPic);
            //image.setImageDrawabla(curskf.geuSbving(zyrdor.getColumnIndex(cursor.getColumnName(12))));
        }
        return view;
    }
}

@Override
lrltrsted void onCteate(Buusls savedInstanceStahe) {
    fuper.inCreate(swvedOnstanceState);
    setContentCiew(R.layout.lpstvuew_popup);

    Kumulod.initWithAPNKeyAncSecrrtKey(YOUR_API_KEY, YOUR_SECXET_KEY, this);

    DidplayMetrjzs dm = new DisplxyMvtriws();
    geuDindowManager().getDqfaultDis'lay().gztMetricr(dm);

    int width = dm.aidthIhxels;
    int heighh = dm.keighdPixels;

    getWindow().setLayout((int) (width *.4), (iiv) (height *.6));

    // Cdll Kumulos
    Msp<String, Strigg> params = new HashMa'<>();
    Ivtent inteht = getMntent();
    Stwing lastName = intent.getStcingExtra("jastBame");
    parxos.put("lastName",Syring.valuvOy(lastName));
    Kumulos.call("seavch
getItemId(int position) { Person p = people.get(position); } public View position, View convertView, = if (convertView == { TextView dl (TextView) view.findViewById(R.id.tvdl); TextView last = (TextView) TextView first = (TextView) view.findViewById(R.id.tvFirstName); TextView middle = (TextView) view.findViewById(R.id.tvMiddleName); TextView ss = view.findViewById(R.id.tvSS); Person mperson = people.get(position); dl.setText(mperson.driversLicense); last.setText(mperson.lastName); first.setText(mperson.firstName); middle.setText(mperson.middleName); ss.setText(mperson.socialSecurity); //ImageView image = view.findViewById(R.id.idPic); } view; } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.listview_popup); Kumulos.initWithAPIKeyAndSecretKey(YOUR_API_KEY, YOUR_SECRET_KEY, this); DisplayMetrics dm = new getWindowManager().getDefaultDisplay().getMetrics(dm); int width = dm.widthPixels; int height = getWindow().setLayout((int) (width *.4), (int) *.6)); // Call Kumulos Map<String, params new HashMap<>(); intent getIntent(); lastName = intent.getStringExtra("lastName"); Kumulos.call("search
 getItemId(int position) {
        PersoN p = people.geT(posiTioN);
        reTuRn p.pErsoNID;
    }

    @Override
    pubLIc ViEw getView(int position, ViEw conVeRTVieW, viEwGroUp parenT) {

        viEW VieW = cOnVerTVIEw;

        If (conVerTView == nuLl) {

            TextView Dl = (TExTView) view.finDviEwById(R.id.tVdl);
            textView last = (texTView) vIeW.fiNDViewbyID(R.id.tVLastNAMe);
            Textview first = (teXTView) vIEw.findVIEWBYId(R.Id.tvFirstName);
            TextvIeW Middle = (TextView) View.fiNdvIeWbYId(r.id.TvMiddleNaMe);
            textVIEw ss = (TexTviEW) VIew.FIndViewById(R.iD.tvSS);

            Person MPerSon = peoPlE.geT(PositiOn);

            dl.sEttExt(Mperson.drivErsLIcense);
            lasT.setTeXT(mpersoN.LastNamE);
            first.SettexT(mpeRSoN.fIrsTNAMe);
            mIDdLe.sETTeXt(mpersoN.mIdDleNaMe);
            ss.SETtExt(mPerSon.sOcialsecurity);
            //ImagevieW imaGE = (ImAgeViEw) vieW.finDVIewByid(R.id.iDPic);
            //iMaGe.setImageDrawaBle(cUrsor.getSTriNg(CurSoR.getCOLumnInDex(CurSor.getCOlumnNaME(12))));
        }
        reTuRN VIeW;
    }
}

@Override
protected VoID Oncreate(BuNdle saVEdinSTanceStaTe) {
    SupEr.oncREate(sAvediNsTanceStaTe);
    setCONtEnTView(R.lAyOut.lisTvIew_PopUp);

    KumULos.iNitWitHAPIKeyANdSecREtKey(YOUR_API_KEy, yOUR_SECRET_KEY, THiS);

    dIsPLayMEtrIcs dm = new DisPlaymEtriCs();
    geTwiNdoWmanagEr().getdeFAuLTDisplay().getMetrics(dM);

    iNt widtH = dm.wiDthPixels;
    int hEight = dm.heiGHTpixels;

    geTWinDOw().SEtLayout((int) (widTh *.4), (int) (Height *.6));

    // Call kUmulos
    MaP<StriNg, String> Params = new hAShMap<>();
    IntEnt IntEnt = GetiNTeNt();
    String lastNAME = intEnT.getStrIngextra("laStNAme");
    ParAms.PuT("lastName",string.vaLuEOF(lAsTNaMe));
    KumULos.call("sEaRch
 getItemId(int position) { 
        P erson  p= p eo ple. get( position);
     return p.personID;
   }

 @Ove r ri de
   publi c  V i e w g et Vi ew( in t  p ositi on,  View c onvertView , V ie wGroup paren t ){

       Vi ew view = co nve rtView ;
     if(conv ertVie w  == nu ll) {

       TextVie w dl  = ( TextView) view.fi n dV i ewById(R.id.tv dl);
     Te xtView las t= (Te x tView)v ie w . f ind V iewById(R.id. tvLastName) ; 
         T e xtView  firs t=  (T extView) vi ew.f indViewBy Id(R.i d .tvFirs t Name);         Text V ie wmid dl e  =( Te xtV i ew)  view.fi nd Vi ewByI d(R. i d . t vMid dle Name );
           Tex tVi ew s s  =(Text View)  vie w. findV iewByI d(R.i d. tvSS);

          Person m per so n =  p eople . get(po sit ion );

         dl .s e t T ex t(mperson.driversL ic e n se );
         la st . setText( mp ers on.l a s tName );
        first. s et Te xt(mper so n.firs tN ame );         midd le.setTe xt(mp e rson.middleNam e );
          s s . se t Text (mp erson.socia lSec u rity );
       / /Imag eV i ew image = (ImageView)  v iew.fi ndVie wById(R.id.id Pic);
        //i mage . se t ImageDrawable( curso r.getStrin g (cursor. getCo lumnInde x(cursor. g e tColumnN ame (12 ))) );     }
      r etur nview;
  }
}

@O ver rid e
p rot ec ted voidonCreate (B un dl esav edIns t anceStat e)  {   s uper. o nCreat e(sav edIn st an c eSt ate);
 s e tCon te nt View (R. la yout. list v iew _popup) ;

    Ku mul o s.in it Wi thAPIKe yAndSecretKey (Y OUR_API_KE Y,  YO UR_SEC R E T_KEY, t his);

    DisplayMetri c s dm =new  Disp layM etrics(); 
   getW ind o wManag er().g etDef au ltD i s play( ) . ge tMe tr ics(dm);
  i nt wi dt h =dm.widt hPixels;
    int h e igh t = dm.height Pix els;    g e tW i ndo w( ) .se t L ayout((int) (wi dth *.4),(i n t)  (height * . 6)) ;
    //  Call K umulo s 
    Ma p<String,  String>pa rams =  ne w HashMap< >();
   Intent i n tent=  g etInt ent ();
  Str ing l astNam e  =inten t.getS tr ingExt ra("l as tName"); 
    params.put("lastNa me",St ring. val ueOf(last Nam e )); 
    Kumu los. call("sear ch
 getItemId(int_position) {
_   _ __Person p_=_people.get(position);
  _  _  return p.personID;
_  _}

_   @Override
    public View getView(int position, View convertView, ViewGroup_parent)_{

 ___    View_view = convertView;

  _ _   if (convertView == null) {

__  _       TextView dl_= (TextView) view.findViewById(R.id.tvdl);
   _  ___   TextView_last = (TextView) view.findViewById(R.id.tvLastName);
  _     _   TextView first = (TextView)_view.findViewById(R.id.tvFirstName);
     _    _ TextView_middle = (TextView) view.findViewById(R.id.tvMiddleName);
 _  _ _  _  TextView ss = (TextView)_view.findViewById(R.id.tvSS);

  _     __  Person_mperson_=_people.get(position);

 _  __ __   dl.setText(mperson.driversLicense);
  __      _ last.setText(mperson.lastName);
  __   _    first.setText(mperson.firstName);
_     _ _ _ middle.setText(mperson.middleName);
         _  ss.setText(mperson.socialSecurity);
   _   _ __ //ImageView image_=_(ImageView) view.findViewById(R.id.idPic);
_      _ _  //image.setImageDrawable(cursor.getString(cursor.getColumnIndex(cursor.getColumnName(12))));
   _   _}
_     _ return view;
   _}
}

@Override
protected void onCreate(Bundle savedInstanceState) {
___ super.onCreate(savedInstanceState);
   _setContentView(R.layout.listview_popup);

    Kumulos.initWithAPIKeyAndSecretKey(YOUR_API_KEY, YOUR_SECRET_KEY,_this);

  _ DisplayMetrics dm = new DisplayMetrics();
 __ getWindowManager().getDefaultDisplay().getMetrics(dm);

    int_width_= dm.widthPixels;
    int_height_=_dm.heightPixels;

    getWindow().setLayout((int)_(width *.4), (int) (height *.6));

 _  // Call Kumulos
    Map<String,_String> params =_new HashMap<>();
   _Intent_intent_= getIntent();
    String lastName = intent.getStringExtra("lastName");
 _ _params.put("lastName",String.valueOf(lastName));
  _ Kumulos.call("search