set focus in unfilled edittext how can implemented android application
<p>I am implementing  one application gust i am adding validations in login page implemented then two fields required username and password  button login i am applying validations then focus are not getting then set focus in unfilled edittext </p>

<p>></p>

<pre><code> if(Username.contentEquals("")) {
    &gt; Toast.makeText(LBS.this, "Please enter
    &gt; username ",Toast.LENGTH_SHORT).show(); 
    &gt; } else { if( pwd.contentEquals("")) 
    &gt; Toast.makeText(LBS.this, "Please enter
    &gt; password ",Toast.LENGTH_SHORT).show();
    &gt; else
    &gt;             try { ........................... }
</code></pre>

<p>not filling username then filling password then username entered some toast displayed fine focus are entered in username edittext this is the problem how can implemented focus in unfilled username   </p>
