In my app i have an editText . If i click on that then it should open the date picker dialog not the keyboard. Its opening date piker but along with keyboard also coming.
(by default keyboard come for editText but i dont want that) I want for this editText keyboard should not visible/ should be hidden.
How can i do that?
I did like this,
private EditText editDate;
editDate=(EditText)findViewById(R.id.editDate);
editDate.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(editDate.getWindowToken(), 0);
showDialog(DATE_DIALOG_ID);
}
});
its not working. Is there any way?
thank you