I'm trying to use Monkey to test the UI of my application but have so far been unsuccessful. I've connected my device to my computer and attempted to run monkey using adb.
The command I'm using is:
adb shell monkey -p com.cooper.redditvideo -v 500
And the error message is:
:Monkey: seed=1392819534260 count=500
:AllowPackage: com.cooper.redditvideo
:IncludeCategory: android.intent.category.LAUNCHER
:IncludeCategory: android.intent.category.MONKEY
Now from what I can tell its trying to say that it can't find an activity with the above two categories to be able to run, however I have specified this in my manifest.
Manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.cooper.redditvideo"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.cooper.redditvideo.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<catagory android:name="android.intent.category.MONKEY" />
</intent-filter>
</activity>
<activity android:name="com.cooper.redditvideo.AboutActivity"
android:label="About"></activity>
</application>
</manifest>
Any suggestions?