My activity contains an editable text view and I would like to
automatically show the soft keyboard when the activity start.
Anyone knows how to do it?

I tried this:

private void showSoftKeyboard() {
        textView.requestFocus();
        inputManager = (InputMethodManager) context.getSystemService
(Context.INPUT_METHOD_SERVICE);
        inputManager.showSoftInputFromInputMethod(textView.getWindowToken(),
InputMethodManager.SHOW_FORCED);
}

but it doesn't work...

Thanks in advance for any help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to