Tasker – Spotify Plug, Load and Play

Standard

Introduction:
This tutorial explains how to make your Tasker app launch Spotify when you plug in your headphones, then raise the volume and play the last played track.

What You’ll Need:
Tasker by Crafty Apps EU
Media Utilities by MYCOLORSCREEN

STEP 1

First off we need to configure Media Utilites to only affect our desired application. In this case we’ll use Spotify.

Open up your Media Ulities application and you will see the available music apps you have on your device.
• Press your menu key.
• Click on “Media App”.
• Select “Remove Media App”.
• And select the ones you want to remove.
Note that you will have to reopen the app each time you remove a media app.
• When you have removed all the unwanted media apps. Open the settings menu and check the only 2 boxes as shown in the screenshot below.

Now you are ready to edit Tasker!

Screenshot_2013-11-05-13-32-56    Screenshot_2013-11-05-13-40-17     Screenshot_2013-11-05-13-34-06

STEP 2

We will now setup the profile that triggers when you plug your headphones in.

• Open your Tasker application.
• Select the “Profiles” tab in the top left.
• Click the + icon in the bottom right.
• Click on “State”.
• Select “Hardware”.
• Select Headset Plugged and leave the settings as they are and press back.

STEP 3

Now we will setup the task (actions) that will occur when the profile is triggered.

Loading Spotify
• Press the “New Task +” that appeared.
• Let’s name it “Spotify Plug Play”.
• Click the “+” icon at the bottom to add an action.
• Select the “App” category.
• Select “Load App”. Find Spotify and select it.
• Press back.

Add a Wait action.
• Click the “+” at the bottom.
• Select the “Task” category.
• Select “Wait”.
• Set Seconds to 5.

Raise the Volume
• Click the “+” icon at the bottom to add another action.
• Select the “Audio” category.
• Select “Media Volume” and set Level to your desired volume.
• Press back.

Getting Spotify to play.
• Click the “+” icon at the bottom.
• Select the “Plugin” category.
• Select “Media Utilities…”
• Click “Edit” in the top right.
• Select “Play (Smart)”
• Press back.

AND WE’RE DONE!

If you do not have any headphones to test this with, press the play icon down to the left.

Screenshot_2013-11-05-14-34-48

About these ads

7 thoughts on “Tasker – Spotify Plug, Load and Play

  1. abcd

    Yeah, it works, thanks. I tried the input keyevent commands first to start playing, but that did not work with the screen off, this Media Utilities stuff works with the screen off.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s