How do i add more Cars
to my ArrayList<Car>
from a separate Activity
?
Because I have something like this :
private List<Car> getData() {
List<Car> cars = new ArrayList<Car>();
cars.add(new Car("Dodge", "Viper"));
cars.add(new Car("Chevrolet", "Corvette"));
cars.add(new Car("Aston Martin", "Vanquish"));
cars.add(new Car("Lamborghini", "Diablo"));
cars.add(new Car("Ford", "Pinto"));
return cars;
}
But cars are only example, I have textswitcher in one application and I want to get text from textswitcher and place it as new item in other Activity with listview.