I have a problem with the soft keyboard after launching another activity. Upon a touch event I use
InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); to pop up the soft keyboard, which works just fine. However, after launching and returning from another (third-party) activity via startActivityForResult(), the touch events again work fine but the soft keyboard no longer shows up with the above lines. I have this problem after launching the phone's browser, after launching ZXing as well as after launching an Admob test ad. Apparently something about the launched activity still lingers after returning from these third-party activities. What must one do to restore a proper state to get the soft keyboard to pop up again, or is this an Android bug? Curiously, the problem is cured after doing yet another startActivityForResult() but then for one of my own activities. The question is what exactly it is that I need to "reset" to regain proper toggleSoftInput() behavior. Thanks! -- 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

