Hi Dianne,

In fact my goal is to write my own Monkey-service(initial version only
for key presses).
What I need is a much more controlled randomness of key presses and
key timings.

I can create and start a service.

I can create a key event:
KeyEvent = kevent = new KeyEvent
(KeyEvent.ACTION_DOWN,KeyEvent.KEYCODE_A);

But I don't know how my Monkeyservice can send it to the current
activity.


How can I compile such service?


On Apr 16, 10:33 am, Dianne Hackborn <hack...@android.com> wrote:
> You need to build it with the platform build system.  This is not intended
> to be used outside of that.
>
>
>
> On Thu, Apr 16, 2009 at 12:46 AM, adrian <linca30...@gmail.com> wrote:
>
> > Hello group,
> > I download the source code from [platform/development.git]/cmds/
> > monkey/ and want to build in eclipse.
> > But I don't have some non-public classes.
> > like:
> > import android.app.ActivityManagerNative;
> > import android.app.IActivityManager;
> > import android.app.IActivityWatcher;
>
> > where can I get the non-public classes?
>
> > Thanks and best regards,
> > Adrian
>
> > On Apr 16, 2:54 am, swarup <me.s...@gmail.com> wrote:
> > > git source path :
>
> > > [platform/development.git]/cmds/monkey/...
>
> > > On Apr 15, 10:57 am, adrian <linca30...@gmail.com> wrote:
>
> > > > Hello group,
> > > > I don't have a option -f in my commandmonkey(/system/bin/monkey).
> > > > example: adb shellmonkey-f <script_file_name>.
> > > > But the command unknown option -f.
> > > > So I want to get  the source code of the commandmonkey, then open
> > > > this option and rebuild it.
>
> > > > Regards,
> > > > Adrian
>
> --
> 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