Activity: Finding an Element Based on a Given Predicate