Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the functionality of "android.intent.category.MONKEY"?

I have searched about it, But unable to find any good documentation on it.

like image 604
Naveed Ali Avatar asked Jul 09 '14 05:07

Naveed Ali


2 Answers

Adding android.intent.category.MONKEY to activity means that

This activity may be exercised by the monkey or other automated test tools.

Reference

How to use it?

like image 138
MysticMagicϡ Avatar answered Oct 18 '22 20:10

MysticMagicϡ


The Monkey is a program that runs on your emulator or device and generates pseudo-random streams of user events such as clicks, touches, or gestures, as well as a number of system-level events. You can use the Monkey to stress-test applications that you are developing, in a random yet repeatable manner. check here. The simplest way to use the monkey is with the following command, which launches your application and sends 500 pseudo-random events to it.

adb shell monkey -v -p your.package.name 500
like image 43
Naveed Ali Avatar answered Oct 18 '22 20:10

Naveed Ali