public PersonListAdapter(PersonVerificationActivity act)
            {
                personIdList   = new List <String>();
                personGroupIds = new List <String>();
                activity       = act;

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

                int index = 0;

                foreach (String personGroupId in personGroups)
                {
                    personIdList.AddRange(StorageHelper.GetAllPersonIds(personGroupId, activity));
                    for (int i = index; i < personIdList.Count; ++i)
                    {
                        personGroupIds.Add(personGroupId);
                    }
                    index = personIdList.Count;
                }
            }
            public FaceListAdapter(Face[] detectionResult, PersonVerificationActivity act)
            {
                faces          = new List <Face>();
                faceThumbnails = new List <Bitmap>();
                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 ex)
                        {
                            activity.SetInfo(ex.Message);
                        }
                    }
                }
            }