Android Virtual KeyboardListener
<p>I have an <code>EditText</code> which when some text entered the virtual keyboard appears and when I press enter I can't get focus in my second <code>EditText</code>, but some times it works.</p>

<p>Anybody please help.</p>

<pre><code>edittext.setOnKeyListener(new OnKeyListener() {

    public boolean onKey(View v, int keyCode, KeyEvent event) {

        if (keyCode == KeyEvent.KEYCODE_ENTER)// key code for virtual keyboard next
            {
                System.out.println("Event catched&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;");

                edittext.requestFocus();

            }

            return false;
        }
    });
</code></pre>
