Android - How can i make results from recognizer to determine 1st and 2nd word seperately?
<p>Here is my code:</p>

<pre><code>
if (results.contains("search"))
{
    int firstSpaceEntry = 0, lastIndex = 0, index = 0;
    String tempString = "";
    &nbsp;
    for (String sExtract : myResults)
    {
        lastIndex = sExtract.length();
        firstSpaceEntry = sExtract.indexOf(" ");
        &nbsp;
        if (firstSpaceEntry &lt; lastIndex)
        {
            tempString = sExtract.substring(firstSpaceEntry, lastIndex);
            myExtract.set(index, tempString);
            &nbsp;
            System.err.println(" index = "+index+" value = "+tempString);
            &nbsp;
            index++;
        }
    }
}
</code></pre>

<p>Problem is that when i say 'search' it works. BUT when i say search + other words it does not work. =/</p>
