The code that I am using to suppress the softkeyboard from appearing works about half the time. Any ideas why and how to go about fixing it. Here is my code.
public void time(View v) {
InputMethodManager imm = (InputMethodManager) getSystemService(Conte xt.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(time.getWindowToken(), 0);
time.setVisibility(View.VISIBLE);
new TimePickerDialog(report.this, t,
dateAndTime.get(Calendar.HOUR_OF_DAY),
dateAndTime.get(Calendar.MINUTE), true).show();
}
I got it to work by adding
date.setInputType(0);
time.setInputType(0);
in the Oncreate area. However now it does not always respond to the first tap on the edittext box. Is this an problem only on the emulator?