Re: [android-developers] How to send an specific key event to FG app using adb?

2010-08-14 Thread dan raaka
http://developer.android.com/guide/topics/testing/testing_android.html

With instrumentation, you can set up mock system objects such as Contexts
before the main application starts, control your application at various
points of its lifecycle, send UI events to the application, and examine the
application's state during its execution.

-Dan


On Fri, Aug 13, 2010 at 11:17 AM, tomei.ninge...@gmail.com 
tomei.ninge...@gmail.com wrote:

 Hello,

 I want to keep launching my app and stress test two scenarios:

launch it and press BACK key
launch it and press MENU key

 I can launch from adb using am command. But how can I send a BACK or
 MENU key using adb.

 I want to do thousands of rounds of testing so I don't want to do it
 manually.

 Thanks!

 --
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

[android-developers] How to send an specific key event to FG app using adb?

2010-08-13 Thread tomei.ninge...@gmail.com
Hello,

I want to keep launching my app and stress test two scenarios:

launch it and press BACK key
launch it and press MENU key

I can launch from adb using am command. But how can I send a BACK or
MENU key using adb.

I want to do thousands of rounds of testing so I don't want to do it
manually.

Thanks!

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