There are a few posts on this subject on the other Android group. I looked into this over the weekend while trying to turn off the onscreen keyboard for a timepicker widget. Here is the answer for Edit Text:
---------- Forwarded message ---------- Date: Sun, Aug 30, 2009 at 2:29 PM Subject: Re: Hide the virtual keyboard To: Beth <[email protected]> Hello, I'm using this code to hide the keyboard on an EditText: public void hideKeyBoard(EditText et) { InputMethodManager imm = (InputMethodManager) getSystemService (Activity.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(et.getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS); } NOTE - this does not work with the TimePicker. I hope it helps. On Sep 2, 1:50 am, salman <[email protected]> wrote: > Hi , > i made a calculator appliation on the android but whenever i > click on edit text the default keyboard pop up .I want to disable it > by implementing something in code because if i want default keyboard > in some other application it should work. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

