Background: I am trying to turn my Nexus 7 (2012) into an Android auto type thing. I saw the headunit app on these forums, but i don't want to rely on my phone to get it working. Also saw the android auto mimic, but I like using the stand alone google maps more.
When i turn on my ignition aka usb power, I would like my spotify to automatically start playing. I have an app installed called "no lock" so I won't have a lockscreen and "auto sleeper" which sleeps my tablet when i turn my ignition off.
So far this tasker opens up Spotify when connected to usb but that's it. It doesn't start playing.
This is what i've done, the original instructions I copied it used headphones plugin instead of my usb connected.
STEP 1
• 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 “usb connected” and leave the settings as they are and press back.
STEP 2
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.
STEP 3
Add a Wait action.
(This is to make sure the app is fully loaded before pressing play.)
• Click the “+” at the bottom.
• Select the “Task” category.
• Select “Wait“.
• Set Seconds to 5 or which you prefer,
STEP 4
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.
STEP 5
Getting Spotify to play.
• Click the “+” icon at the bottom.
• Select the “System” category.
• Select “Send Intent”
• Set these fields:
– Action: com.spotify.mobile.android.ui.widget.PLAY
– Cat: None
– Package: com.spotify.music
– Target: Broadcast Reciever
When i turn on my ignition aka usb power, I would like my spotify to automatically start playing. I have an app installed called "no lock" so I won't have a lockscreen and "auto sleeper" which sleeps my tablet when i turn my ignition off.
So far this tasker opens up Spotify when connected to usb but that's it. It doesn't start playing.
This is what i've done, the original instructions I copied it used headphones plugin instead of my usb connected.
STEP 1
• 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 “usb connected” and leave the settings as they are and press back.
STEP 2
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.
STEP 3
Add a Wait action.
(This is to make sure the app is fully loaded before pressing play.)
• Click the “+” at the bottom.
• Select the “Task” category.
• Select “Wait“.
• Set Seconds to 5 or which you prefer,
STEP 4
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.
STEP 5
Getting Spotify to play.
• Click the “+” icon at the bottom.
• Select the “System” category.
• Select “Send Intent”
• Set these fields:
– Action: com.spotify.mobile.android.ui.widget.PLAY
– Cat: None
– Package: com.spotify.music
– Target: Broadcast Reciever
No comments:
Post a Comment