How to set focus for AutoCompleteText View if value entered is wrong
<pre><code>setOnFocusChangeListener(new OnFocusChangeListener()
    {

        @Override
            public void onFocusChange(View v, boolean hasFocus) 
            {
                // TODO Auto-generated method stub
            if (currentfocus==false)
            {
                if (!v.hasFocus())
                {   
                    currentfocus=true;
                    v.requestFocus();
                    return;
                }
            }
                if(currentfocus==true)
                {
                    if(v.hasFocus())
                    {
                        v.clearFocus();
                    }
                }
            }
        });
</code></pre>
