I spent some time researching InputMethodManager.java and besides having a ton of threading code I couldn't follow, the best I could gather was that whatever view currently has focus SHOULD be able to invoke showSoftInput as it the InputMethod's "active" view.
After much further testing... the only conclusion that I can come to is that the InputMethodManager Service is not getting flagged soon enough that the view I'm trying to use to call the softInput has focus. I threw a little test together... I subclassed Thread and created a constructor that takes the Activity so I can call runOnUIThread from that started Thread. In the View's onFocusChangeListenter, I start the thread, have it sleep for just a moment, and then have it call runOnUIThread() and in it's Runnable call to showSoftInput() and viola... it works just fine. This is hackish... but since what I'm working on is entirely my own personal project for only my hardware... it'll have to do. On Feb 1, 3:21 pm, TreKing <[email protected]> wrote: > On Tue, Feb 1, 2011 at 5:10 PM, Jeremiah Sellars > <[email protected]>wrote: > > > I will try that, but part of the problem, is when to call clearFocus() > > and requestFocus(). I've tried that after the dialog is shown, but it > > doesn't work. > > Try requesting focus on something else first, then the EditText. > > > I certainly don't have to have it work this way... it was just something I > > thought would be much easier than it's become and have gotten wrapped up in > > finding a solution and wanting to understand how the InputMethodManager is > > tracking the "active" view. > > I know that feeling. "You stupid machine, you will not defeat me!" =P > > Good luck. > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- 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

