How to use Android Monkey

I got a little confused about how to actually use monkey , I thought you should turn on your emulator and go to the terminal editor and type:

 $ adb shell monkey -p insert.my.package.name.here -v 500 

since this did not work (error, adb: permission denied )

I tried monkey -p insert.blah.blah -v 500 and it says that he was killed, what am I doing wrong?

+7
source share
1 answer

He is probably trying to talk to the device through your USB port.

You probably just need to add -e to tell adb to connect to the emulator:

 $ adb shell monkey -p insert.my.package.name.here -v 500 

(Or -s serialnum if you have more than one emulator running.)

See the Settings Guide in ADB docs.

+6
source

All Articles