Open main menu

DAVE Developer's Wiki β

Changes

Button Pressing Emulation On Android

450 bytes added, 08:03, 1 October 2012
no edit summary
Sometimes, during the development phases, real hardware buttons are not available, causing bad interaction with the Android interface. It would help to have an emulator to send events as button pressing to the Android system, and it's here that the [http://developer.android.com/tools/help/monkeyrunner_concepts.html MonkeyRunner] tool shows its usefulness.
 
== Setting up MonkeyRunner ==
 
You can run MonkeyRunner from your host machine when the ADB connection with the device is established. The monkeyrunner command is found in the tools/ subdirectory of your SDK directory. Launching monkeyrunner, you can both activate a script or the interactive shell. For more information, please refer to [http://developer.android.com/tools/help/monkeyrunner_concepts.html#RunningMonkeyRunner Running MonkeyRunner].
== Emulating key pressing ==