Android Java Voice Recognition only need 1 result.......How to obtain 1 result?
<p>I have a speech recognition program that displays 5-6 results. I only want the 1st result to appear. Can you help with this please?</p>

<p>code:</p>

<pre><code>@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub


    if (requestCode == check &amp;&amp; resultCode == RESULT_OK){
        ArrayList&lt;String&gt; results = data.getStringArrayListExtra(RecognizerIntent.EXTRA_RESULTS);
        lv.setAdapter(new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, results));

    }
</code></pre>

<p>Please advise?</p>

<p>Thank you.
FlinxSYS</p>
