Hi All,

Well, we got the issue sorted out. Steps used:
1. add following intent informatiob in AndroidManifest.xml of Music
player for VideoBrowserActivity:

<category android:name="android.intent.category.MONKEY"/>

2. Launch Music player:

am start -a android.intent.action.MAIN -n com.android.music/
com.android.music.VideoBrowserActivity

3. Launch Monkey with command:

monkey -p com.android.music -p com.android.camera -c
android.intent.category.MONKEY -f /sdcard/monkey.txt -v -v -v 1

Regards,
Vrukesh


On Apr 6, 3:44 pm, vrukesh <[email protected]> wrote:
> Hi,
>
> We are trying to test the Music Player (Music.apk) withMonkey.
>
> We have added the permissions in AndroidManifest.xml of Camera
> application (Camera.apk):
>
> <uses-permission
> android:name="android.permission.SET_ACTIVITY_WATCHER" />
>
> In the same file, we have added intent for MovieView Activity:
> <category android:name="android.intent.category.MONKEY" />
>
> We use the following commands:
>
> # Launch the Music Player
> am start -a android.intent.action.MAIN -n com.android.music/
> com.android.music.VideoBrowserActivity
>
> # LaunchMonkeyto test Music playermonkey-p com.android.music -v -v -v 500
>
> But, we get the error message:
> "// Rejecting start of Intent { action=android.intent.action.VIEW
> data=content://media/external/video/media/3 type=video/mp4 comp=
> {com.android.camera/com.android.camera.MovieView} } in package
> com.android.camera"
>
> Any suggestions to solve the issue ?
> Regards,
> Vrukesh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to