I have found "system/core/toolbox/sendevent.c" in Android source-codes, and
find it can send event in C/C++, but don't try successfully. Do you know how
to work?

In fact, my tools are developed by C/C++, so seem that can't call java
interface. This is my regret.
Or, do you know how to call java interface by C/C++?
Thanks your response.
2009/2/3 Dianne Hackborn <[email protected]>

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

Reply via email to