Heve you tried

device.press("KEYCODE_ESCAPE", "DOWN_AND_UP")

?

On May 25, 8:55 am, isildur <[email protected]> wrote:
> hi
>
> I have written the following command to instruct MonkeyRunner to send an
> escape keyevent to the emulator
> ****************************************************
> device.press("111", "DOWN_AND_UP")
> ****************************************************
>
> But the escape never happens on the intended app. Even if I send this event
> multiple times the escape never works.
> Following is what I see in the logs
> *************************************************************************** 
> ***********
> 05-25 17:52:54.887: DEBUG/MonkeyStub(577): translateCommand: press 111
> 05-25 17:52:55.138: DEBUG/MonkeyStub(577): Quit requested
> 05-25 17:52:55.316: INFO/AndroidRuntime(577): AndroidRuntime onExit calling
> exit(8)
> *************************************************************************** 
> *********
>
> Emulator is : Android2.2 - API level8
>
> can anyone help me to sort this problem.
>
> thx
> isildur

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

Reply via email to