virtual key pad problem
<p>I have edittext view with default text value  like 'Enter Value' at the time of user touch  edittext  I want to clear edittext value   and show virtul keypad to user </p>

<p>I done like this but still not working can anybody tell how to do?</p>

<pre><code>@Override
    public boolean onTouch(View arg0, MotionEvent arg1) {
        // TODO Auto-generated method stub
        edtsearch.setText("");
        //((InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE)).showSoftInput(edtsearch, 0);  
        InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
        mgr.showSoftInput(edtsearch, InputMethodManager.SHOW_IMPLICIT);

        return true;
    }
</code></pre>

<p>the above code didn't show keypad  can anybody tell how to clear the value and show keypad to the user </p>

<p>even i used android:hint at the time of keypad clicking only it clear the value .I want if user touch the edit text box clear the value and show keypad to the user</p>
