This is not supported from native code. You can look at the monkey command for an example of how you can write a Java program that can be launched from the shell and sends events to the running system.
On Mon, Feb 2, 2009 at 9:45 PM, <[email protected]> wrote: > hi, > > I'd like to send a event in C/C++. Do you know how to do that? > > Thanks. > > 2009/2/2 <[email protected]> > >> hi, >> >> I check Android source-codes "system/core/toolbox/sendevent.c", and find >> it can't work in Emlator and real phone. >> Currently, I'm implementing a C/C++ modules that need send a event to >> system. So, can't call java's interface, such as sendKeySync(). >> >> How to send event in C/C++? >> >> 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. 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 -~----------~----~----~----~------~----~------~--~---
