Hi Kanishka, There is no such mechanism to execute MP3 file as parameter with default Music player.
What you can instead try is: 1. launch Music player using command: am start -a android.intent.action.MAIN -n com.android.music/com.android.music.MusicBrowserActivity 2. provide "input keyevent <keycode>" commands and select your MP3 file 3. when MP3 file ends playback, use "input keyevent <keycode>" command to go back to HOME menu. -Vrukesh On Wed, Mar 9, 2011 at 5:31 PM, Kanishka Dutta <[email protected]>wrote: > Hello, > > I am trying to run a mp3 file using monkey > 1.mp3 is the name of the file. > > adb shell monkey -p com.android.music -v 10 1.mp3 > > Can you please help me with the proper command to play out a file after the > music-player or nedia-player opens up? > > Regards, > Kanishka Dutta > > -- > 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 > -- 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

