I am still a n00b but I did find one way for this to work and I thought I would post it here.
I am sure there is a better way to do this but for my skill level this way works for me.
I would love to hear more efficient solutions if anyone has better ideas.
My idea in short is, I want to make a task that launches a specific Pandora station as apposed to the last one that was played. Is this possible?As far as I could find on my own this has something to do with sending intents, but I don't know how to do that. And I have read Pandora either doesn't have or cant receive intents. So I'm posting here to see if anyone has another idea of how this could be done. I have tried using the D-pad movements and clicks but this doesn't work because it depends on what the last station that was listened to.Thanks for any new ideas.
Matt
1 when I plug in headphones I have a scene that shows up, then based on the selection I make I set the %PANDstation variable to the desired station.
2 the following profile runs
Profile: Pandora Change Station (122)
Event: Variable Set [ Variable:%PANDstation Value:* ]
Enter: Pandora Change Station Intent (113)
A1: Perform Task [ Name:Volume Gradual Stop:Off Priority:9 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ] If [ %PACTIVE ~ *music vg* ]
A2: Variable Set [ Name:%DATASTAY To:%TIMES+(60*60*2) Do Maths:On Append:Off ]
A3: Wait Until [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ] If [ %CELLSIG > 1 ]
A4: Send Intent [ Action:android.intent.action.VIEW Cat:Default Mime Type: Data:pandorav2:/createStation?stationId=%PANDstation Extra: Extra: Package:com.pandora.android Class:com.pandora.android.Main Target:Activity ]
A5: Perform Task [ Name:Kill Play Music Stop:Off Priority:4 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
So I make a selection on the scene, it sets a variable and then the desired Pandora station launches.
%PANDstation should be set to the sequence of numbers shown at the the end of the address bar of your computer when listening to a station.
If you're interested and have more questions I'll be happy to help.
Great I'm glad it helped someone else! It took me a lot of trial and error, I'm no developer.
Eric.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/p2i_cesy8Bk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.