Er you use it the same way as you would if using it in an input method.
 It's a view, you put it in your UI in some way, give it the information
about the key layout, get the callbacks as it is pressed, and do the
appropriate thing.  Just like when implementing an IME.

On Wed, Sep 16, 2009 at 2:52 AM, HandsomeboyIT <handsomebo...@gmail.com>wrote:

>
>
> Thanks Dianne Hackborn. can you explain more about the way of using
> the raw keyboard view classes? I just want to send some key event to
> my app but don't want to implement another keyboard. I don't know how
> to do this.
>
> On Sep 16, 11:42 am, Dianne Hackborn <hack...@android.com> wrote:
> > You can't, the purpose of InputMethodService is to write a global input
> > method service.  If you just want to put a keyboard in your app, you
> could
> > try using the raw keyboard view classes.
> >
> > On Tue, Sep 15, 2009 at 9:35 PM, HandsomeboyIT <handsomebo...@gmail.com
> >wrote:
> >
> >
> >
> > > Hi all,
> > > I'm using SoftKeyboard to simulate some KeyEvents to application.
> > > Everything is done after I had set the system keyboard (LatinKeyboard)
> > > in Setting screen. But I don't want to do this Settings action. I want
> > > to run emulator with default setting. If I don't set the LatinKeyboard
> > > in Settings,my service(extends InputMethodService class) is not
> > > started. I have tried to call startService or bindService but it seem
> > > to be impossible to do this. How can I start my input service in this
> > > situation??
> >
> > > Thanks for your reply.
> >
> > --
> > Dianne Hackborn
> > Android framework engineer
> > hack...@android.com
> >
> > 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.
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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

Reply via email to