take the value from onitemselect in autocompletetextview
<p>amount is not being set to EditText, only stores in another external variable. </p>

<pre><code>productAtoComplete.setOnItemClickListener(new OnItemClickListener(){
    public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id){
        amount.setText(map.get((String) parent.getItemAtPosition(position)));
    }
});
</code></pre>
