In Tasker, there is a Media Control action which allows me to move to the next song however it only seems to work for the default Android player.
Is it there a way to hook Spotify up to do this?
Yes it is possible, but using Tasker's built in Media Control Next will not work.
For the action you need to use Script --> Run Shell, and as the command enter "input keyevent 87" without quotes. This is the Android API:
https://developer.android.com/reference/android/view/KeyEvent.html#KEYCODE_MEDIA_NEXT
The link says how to get tasker to make spotify play:
Getting Spotify to play.
- Click the “+” icon at the bottom.
- Select the “System” category.
- Select “Sent Intent”
- Set these fields:
- Action: com.spotify.mobile.android.ui.widget.PLAY
- Cat: None
- Package: com.spotify.music
- Target: Broadcast Reciever
From spotify's Manifest.xml
I can see that there is also a com.spotify.mobile.android.ui.widget.NEXT
action so I would guess that if you used that instead of com.spotify.mobile.android.ui.widget.PLAY
then it would play the next track.
Don't ask me how, but this worked for me:
Maybe... WaveControl says it can control Spotify and has Tasker integration. I'm not a Spotify user, though, and it's much too late to check it out right now.
Mybe this can help you :
http://androidtrix.wordpress.com/2013/11/05/tasker-spotify-plug-load-and-play/
Greetings