On 02/09/2011 02:15 PM, Kostya Vasilyev wrote:
No idea about the hardware keyboard, sorry.
Have you tried requesting focus inside the show listener? I would think it'd do
the right thing for both soft/hard keyboards
I did. That was your original suggestion.
So I have:
notes_dialog.setOnShowListener(
new DialogInterface.OnShowListener(){
public void onShow(DialogInterface d){
dialog_edit_text.requestFocus();
//InputMethodManager input_manager = (InputMethodManager)
getSystemService(borg.INPUT_METHOD_SERVICE)
//input_manager.showSoftInput(dialog_edit_text,
input_manager.SHOW_IMPLICIT);
}
}
);
The keyboard does not raise.
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.
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.
Thanks,
Tobiah
--
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