Monkey gives a strange error in the Android emulator

I allow the monkey to run its application (via the Android emulator) using the following command:

Monkey -p <packagename> -v 5000

I get 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 again and again every few seconds and is the only error that occurs. This is strange because my application does not touch any media player features at all. This is a simple notes / to-do app. Any understanding that the monkey is touching, what is causing the error, and what can I do to prevent it?

Or can it be safely ignored?

Thanks!

EDIT: It seems I found the source of my problem. Apparently, the monkey managed to translate my keyboard into some kind of Asian language. And whenever the bottom left key (two Asian characters) is pressed on the soft keyboard image below. I get a media player error. Does anyone know what this key does? WHY MONKEY! WHY!?!?

+7
source share
1 answer

This may be an attempt to enter the voice recording mode, which may fail in the emulator due to the lack of microphone input. Another thought is that it presses the volume keys, which your emulator cannot handle for some strange reason.

What I always did limited the monkey to what I wanted to test. On the Monkey Page page, you can set --pct-syskeys and --pct-anyevent to 0 and see if this fixes it.

+1
source

All Articles