10.02.2011 19:24, Tobiah пишет:

If I uncomment the two input manager lines, the keyboard raises with the dialog.
In any case, whether the requestFocus() is called makes no difference.

You could try clearing the focus and requesting it again.


Can I get the actual dialog back from the DialogInterface? I have an EditText and a Save/Cancel button combo in the Dialog. I don't understand how to get the information back from the dialog. I'm firing it off with showDialog(), but I've
seen what look like examples of how to do this with an Intent and
startActivityForResult() which would do the trick I think.

You could use final variables to sneak object references into dialog callback handlers.

Another way is to manage your EditText outside the dialog, take a look at the source for EditTextPreference.

Yet another is to cast DialogInterface to Dialog and use Dialog.findViewById.

And yet another is to load the content view for the dialog yourself, call findViewById on that to get to the edit control, and then use setContentView (View view, LayoutParams) to set the dialog's content.

--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
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