How do I change something like this:
CharSequence cs[] = { \"foo\", \"bar\" };
to:
CharSequence cs[]; cs.add(\"foo\"); //
If you want it to be dynamical, you should think in an another structure and then convert it to a CharSequence when you need. Alternatively, that thread can be useful.