How to off android default keyboard when i pressed on editText
<p>I would like to off android default keyboard when i pressed at editText. Such that the default keyboard will not popup.
I have tried folloing code but didn't worked:</p>

<pre><code>   &lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/lltest"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" &gt;
   &lt;EditText
        android:id="@+id/editText0"
       android:layout_width="fill_parent"
      android:layout_height="wrap_content"&gt;
  &lt;/EditText&gt;
 &lt;/LinearLayout&gt;
</code></pre>

<p>And code is:</p>

<pre><code>    edtEdit1.setOnTouchListener(new View.OnTouchListener() {

        @Override
        public boolean onTouch(View v, MotionEvent event) {
            // TODO Auto-generated method stub

InputMethodManager imm =                          (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
            imm.hideSoftInputFromWindow(edtEdit1.getWindowToken(), 1);
            return false;
        }
    });
</code></pre>
