Naveed Ali
Naveed Ali

Reputation: 2619

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

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

Upvotes: 11

Views: 7357

Answers (3)

Naveed Ali
Naveed Ali

Reputation: 2619

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

Upvotes: 8

MysticMagicϡ
MysticMagicϡ

Reputation: 28823

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?

Upvotes: 10

Gabe Sechan
Gabe Sechan

Reputation: 93624

It means that the activity should be launched by the automated testing tool Monkey.

Upvotes: 1

Related Questions