I'm letting monkey run on my app (via android emulator) using the following instruction:
Monkey -p <packagename> -v 5000
I am getting the following errors:
01-28 11:45:55.392: ERROR/MediaPlayerService(34): error: -2
01-28 11:45:55.392: ERROR/MediaPlayer(58): Unable to to create media player
01-28 11:45:58.783: ERROR/MediaPlayerService(34): error: -2
01-28 11:45:58.783: ERROR/MediaPlayer(58): Unable to to create media player
01-28 11:46:13.742: ERROR/MediaPlayerService(34): error: -2
01-28 11:46:13.752: ERROR/MediaPlayer(58): Unable to to create media player
This happens over and over again every few seconds and is the only error that occurs. This is odd because my app doesn't touch any media player functionality at all. It is a simple note/to-do app. Any insight into what monkey is touching that's causing the error and what I could do to prevent it?
Or can this be safely ignored?
Thanks!
EDIT: I think I found the source of my issue. Apparently monkey managed to put my keyboard into some sort of Asian language. And whenever the bottom left key (two Asian characters) is pressed in the soft keyboard image below. I receive the mediaplayer error. Does anyone know what this key does??
It could be trying to get into voice record mode which might fail in the emulator due to the lack of microphone input. Another thought is it's hitting the volume keys which your emulator can't handle for some odd reason.
What I always did was limit the monkey to what I was wanting to test. Per the Monkey doc page you can set --pct-syskeys
and --pct-anyevent
to 0 and see if that fixes it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With