How do I change something like this:
CharSequence cs[] = { \"foo\", \"bar\" };
to:
CharSequence cs[]; cs.add(\"foo\"); //
You can also use List, to have a dynamic number of members in the array(list :)):
List
List cs = new ArrayList(); cs.add("foo"); cs.add("bar");
If you want to use array, you can do:
CharSequence cs[]; cs = new String[2]; cs[0] = "foo"; cs[1] = "bar";