I realized I did not end up including that. Yes, it does come up as
expected when tapped. I've actually been looking through the
TextView.java code to see if I can implement what is happening when it
is touched/clicked... but that's getting a bit over my head.

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. I'm pretty close to extending Dialog and trying to give
the view focus during it's own onStart() but that seems completely
nuts to go through all that. I'm really just wondering if the
InputMethodManager is just lagging behind on "noticing" the focus
change... but since I don't know how it works...

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.


On Feb 1, 2:56 pm, TreKing <[email protected]> wrote:
> On Tue, Feb 1, 2011 at 3:43 PM, Jeremiah Sellars 
> <[email protected]>wrote:
>
> > The scenario I have is an AlertDialog containing a single EditText view. In
> > my main activity, I click a button that launches the Dialog.
>
> I have something similar. The soft keyboard does not come up immediately,
> but does come up once you tap it. Do you need it to be immediately as the
> dialog is shown?
>
> If that's the case, I would try removing then re-requesting focus on the
> EditText.
>
> -------------------------------------------------------------------------------------------------
> 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

Reply via email to