2

I am hacking my nexus q and setting up some tools to allow users to run apps and one of the things I am trying to do is launch a song on spotify over adb so that way it can be run from say a script or call from a webpage etc. I saw the post Intents to launch song, search for user in spotify app? but I am not sure how to launch this via the command prompt. I am currently at -

adb am start -a MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH -e SearchManager.QUERY "michael jackson smooth criminal" -n com.spotify.mobile.android.ui/.Launcher

This though isn't returning anything so I wasn't sure what else I many need to add or change from the command itself. I know I am connected to the device properly and I see the start of the command called but after that nothing happens. In the log it does show 'Duplicate finish request for Activity Record 'com.spotify.mobile.android.ui/.Launcher' so I am guessing it is running just not finishing etc.

Thanks all, Joe

4

0 回答 0