You can use the InputMethodManager class for controlling the IME.

Note that the soft keyboard support is still under development, so things
may be broken or in the process of changing or whatever else.  This isn't
officially ready for app development yet.

At the very least, if you can't build the platform to get the development
SDK docs (which has things like the windowSoftInputModeAttribute) or know
where to find those in the source code, it probably isn't yet ready for you
to use. :)

On Wed, Feb 4, 2009 at 11:01 AM, Kavik <[email protected]> wrote:

>
> Hi,
> I am trying to show the softkeyboard when my activity starts and a
> EditText field receives focus.
> Currently, it only shows up when i tap on the field but i would like
> to open it progmatically.
> I tried the requestFocus method but didn't work. Also tried the
> performClick method but still doesn't work.
> I tried setting the android:windowSoftInputMode attribute in the
> manifest for my activity but didn't know the value to assign it. I
> tried "visible" and "3" (i looked at WindowManager LayoutParams and
> found out that 3 corresponds to visible) but when i compile, i get
> errors that string types and integer types are not allowed.
> Could anyone give me an example on how we can control some of the
> Keyboard behavior from our activity.
>
> I would also like to learn about the ability to listen for key events
> as the user types , take certain action and then pass on the events to
> the system. I know that the documentation isn't there yet but if
> anybody can point out the code files that i need to look at, that
> would be great.
>
> Thanks
>
> kavik
> >
>


-- 
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.  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-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to