So I'm doing this:
int len = lv.getCount();
List<String> Cool = null;
SparseBooleanArray checked = lv.getCheckedItemPositions();
for (int i = 0; i < len; i++)
if (checked.get(i)) {
String item = String.valueOf(names.get(i));
int start = item.lastIndexOf('=') + 1;
int end = item.lastIndexOf('}');
String TEST = item.substring(start, end);
Log.d("Log", TEST);
Cool = new ArrayList<String>();
Cool.add(TEST);
}
String NEW = StringUtils.join(Cool, ',');
Log.d("Log", NEW);
Which evey time replaces the thing in the list with whatever the next item is. How do i make it put the strings after each other.
Thanks for the help.