public PersonGroupListAdapter(IdentificationActivity act)
            {
                personGroupIdList = new List <String>();
                activity          = act;

                ICollection <String> personGroupIds = StorageHelper.GetAllPersonGroupIds(activity);

                foreach (String personGroupId in personGroupIds)
                {
                    personGroupIdList.Add(personGroupId);
                    if (activity.mPersonGroupId != null && personGroupId.Equals(activity.mPersonGroupId))
                    {
                        personGroupIdList[personGroupIdList.Count - 1]        = activity.mPersonGroupListAdapter.personGroupIdList[0];
                        activity.mPersonGroupListAdapter.personGroupIdList[0] = personGroupId;
                    }
                }
            }
            public FaceListAdapter(Face[] detectionResult, IdentificationActivity act)
            {
                faces            = new List <Face>();
                faceThumbnails   = new List <Bitmap>();
                mIdentifyResults = new List <IdentifyResult>();
                activity         = act;

                if (detectionResult != null)
                {
                    faces = detectionResult.ToList();
                    foreach (Face face in faces)
                    {
                        try
                        {
                            faceThumbnails.Add(ImageHelper.GenerateFaceThumbnail(
                                                   activity.mBitmap, face.FaceRectangle));
                        }
                        catch (Java.IO.IOException e)
                        {
                            activity.SetInfo(e.Message);
                        }
                    }
                }
            }
 public SetOnItemClickListener(IdentificationActivity act)
 {
     this.activity = act;
 }