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:
   <?xml version="1.0" encoding="utf-8"?>
    <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" >
   <EditText
        android:id="@+id/editText0"
       android:layout_width="fill_parent"
      android:layout_height="wrap_content">
  </EditText>
 </LinearLayout>
And code is:
    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;
        }
    });
 
     
     
     
     
    