I am a little confused on how to actually use monkey
, i thought you were supposed to power on your emulator and go into terminal editor and type:
$ adb shell monkey -p insert.my.package.name.here -v 500
since that did not work (error, adb: permission denied
)
i tried monkey -p insert.blah.blah -v 500
and this comes up that it has been killed, what am I doing wrong?
It's probably trying to talk to a device over your USB port.
You probably just need to add an
-e
in there to tell adb to connect to the emulator:(Or
-s serialnum
if you have more than one emulator running.)See Directing commands in the ADB docs.