If you are using a TextView, this is the easiest API: http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptions
If you are talking directly with an InputConnection directly, you can fill in your EditorInfo with this and other information as you want. On Wed, Sep 23, 2009 at 6:04 PM, Mike Collins <[email protected]>wrote: > > > Thanks, to be clear I'm using the 1.5 SDK and a G1 with 1.5 on it. > > How do I assign an action to the Done key? I can see the EditorInfo > class and > can maybe understand how to setup an action but have no idea what to > do with it. > From the SoftKeyboard example I'm apparently to send one of these to > the IME > service but how? > > With my not-hypothetical username/password dialog the Done key does > not > close the soft keyboard, it just sits there and sends > KeyEvent.KEYCODE_ENTER > to me on each click. My two input fields have "text" and "password" > as > the InputType and that's all. > > mike > > > > -- 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 -~----------~----~----~----~------~----~------~--~---

