Call the method on InputMethodManager to show the soft keyboard.

On Wed, Apr 29, 2009 at 11:06 AM, blindfold <[email protected]>wrote:

>
> > But it seems to only work with an Edit Text view, I understand it
> > makes little sense to do so but is there a way I can have it
> > permanently raised for say an image view?
>
> I too am looking for a very simple way to just pop up a soft keyboard
> for my graphical screen (being an ImageView), to next act as an
> equivalent of onKeyDown() single character control like I use with the
> physical keyboard. It looks like for a soft keyboard such a simple
> thing cannot be done in a couple of statements, judging from a quick
> glance at the softkeyboard SDK sample? I really don't like the
> prospect of writing hundreds of lines of code to accomplish something
> this basic.
>
> Regards
>
> On Mar 17, 12:08 am, me tun <[email protected]> wrote:
> > In the InputMethodManager class, there seems to be a method
> > showSoftInput(view) @param view: The currently focused view, which
> > would like to receive soft keyboard input.  I have tried calling this
> > as follows:
> >
> >         InputMethodManager imm = (InputMethodManager)
> >                 getContext().getSystemService
> > (Context.INPUT_METHOD_SERVICE);
> >         imm.showSoftInput(mTextEntry);
> >
> > But it seems to only work with an Edit Text view, I understand it
> > makes little sense to do so but is there a way I can have it
> > permanently raised for say an image view?
> >
> > On Mar 16, 11:03 am, me tun <[email protected]> wrote:
> >
> > > I want to permanently display the virtual keyboard in my application,
> > > but it seems bound by focus to an edit text field.  Is there a way
> > > around this?
> >
> > > Thanks!
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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