This works for me, I have a button the user presses and the keyboard
pops up.
final ImageButton abc = (ImageButton)
numbers.findViewById(R.id.ButtonAbc);
abc.setOnClickListener(new View.OnClickListener() {
public void onClick(final View v) {
final InputMethodManager mgr =
(InputMethodManager) ((Activity)
context)
.getSystemService(Context.INPUT_METHOD_SERVICE);
// only will trigger it if no physical keyboard
is open
mgr.showSoftInput(edit,
InputMethodManager.SHOW_FORCED);// .SHOW_IMPLICIT)
}
});
I think I tried to do it in onCreate but that did not work, it had to
be done after the dialog or window was fully created, but my memory is
a little hazy.
On May 26, 10:12 am, TreKing treking...@gmail.com wrote:
On Wed, May 26, 2010 at 2:49 AM, oriharel ori.ha...@gmail.com wrote:
please help?
Try setting focus on the EditText - the soft keyboard pops up automatically
for me doing that. Note however that this may depend on the platform version
and whether the device has a physical keyboard or not. Not sure.
---
--
TreKing - Chicago transit tracking app for Android-powered
deviceshttp://sites.google.com/site/rezmobileapps/treking
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en