Hi,

I was trying to disable the keyboard on my ListActivity but it does
not work, however the same code works in a normal activity. Is there
anything that i am missing.

I have tried the following :
1)
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);

2)  EditText search_s = (EditText) findViewById(R.id.search_txt);
        InputMethodManager imm =
(InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.hideSoftInputFromWindow(search_s.getWindowToken(), 0);

Is there anything that I need to do if it is a ListActivity or is it
the same?

Please can anyone let me know about this.

Thanks,
Prajakta

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to