0

I have this ArrayList with 90+ elements in it that is created based on the data I get from a JSON file. I parsed all the neccessary info and created the list successfully.

 ArrayList<ExistingCustomer> customers;

I need to view the companyName (a string) member field of all the elements of the array on a ListView, and start a new Activity when the user taps on one of them.

I know how to use the adapter when I have a String array but I don't know what to do with an ArrayList. Can you help me out or push me in the right direction?

Edit: No this question has not been asked yet, and it it has, I couldn'T find it. The question you linked me to does not answer my question as it is an example of how to view the elements of a ArrayList structure, not ArrayList.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

0 Answers0