Witam. Mam dwie array listy i gdy stringi z jednej wyswietlane sa na text switcherze to chcialbym aby po kliknieciu przycisku dany string byl dodawany na stale do istniejacej juz innej ArrayList, probowalem cos takiego :
List favorites = new ArrayList();
i po wcisnieciu buttona :
favorites.add(ts.getContext().toString());
ts - moj textSwitcher.
W jaki sposob mozna wczytac text i dodac go na stale do innej arrayList ?