Android String Array Manipulation
<p>I have a lengthy string in my Android program.
What I need is, I need to split each word of that string and copy that each word to a new String Array.
For eg: If the string is "I did android program" and the string array is named my_array then each index should contain values like:</p>

<pre><code>my_array[0] = I
my_array[1] = did
my_array[2] = Android
my_array[3] = Program
</code></pre>

<p>A part of program which I did looks like this:</p>

<pre><code>StringTokenizer st = new StringTokenizer(result,"|");
Toast.makeText(appointment.this, st.nextToken(), Toast.LENGTH_SHORT).show();
while(st.hasMoreTokens())
{
String n = (String)st.nextToken();
services1[i] = n;
Toast.makeText(appointment.this, st.nextToken(), Toast.LENGTH_SHORT).show();
}
</code></pre>

<p>Can any one please suggest some ideas..</p>
