-3

I need to send that information to another activity. How will I be able to do that?

        ArrayList<Contact> contacts;
        contacts = new ArrayList<Contact>();
        contacts.add(new Contact("Messy", "0516586348", "male"));
        contacts.add(new Contact("Lisa", "0816957852", "female"));
        contacts.add(new Contact("Grace", "0613253656", "female"));
        contacts.add(new Contact("Ivan", "0826525298", "male"));
        contacts.add(new Contact("David", "0645956325", "male"));
Ron
  • 1
  • 2

1 Answers1

0

use Bundle like in some examples HERE

best approach would be to make Contact implements Parcelable, then you may put into Bundle whole ArrayList (some short description of this mechanism in oficial docs)

snachmsm
  • 10,975
  • 1
  • 22
  • 52