In Android
I want to pass set values to another activity
..How Can I do that?
Set<Person> persons=getPersons();
Intent intent = new Intent(getApplicationContext(), MainActivity2.class);
intent.putExtra("persons", persons); //Here I am getting error
startActivity(intent);
But I am getting error in intent.putExtra()
..why?how Can I pass these set values?