Controlling Audible App using intents

1,602 views
Skip to first unread message

Ronny Brandt

unread,
Jan 8, 2014, 9:15:12 AM1/8/14
to tas...@googlegroups.com
Hello,

I'd like to control the audible app using tasker and intents. I already figured out the following interesting intents from AndroidManifest.xml:


But I'm not able to get these intents working?

Can anybody help me with this?

Thanks
Ronny

Matt R

unread,
Jan 8, 2014, 1:06:30 PM1/8/14
to tas...@googlegroups.com
I don't have that app, but I imagine the text goes in the action field. Try the three different target options.

Matt

Ronny Brandt

unread,
Jan 9, 2014, 6:57:27 AM1/9/14
to tas...@googlegroups.com
I already tried to put it into the action field and selected all three target options - nothing happened :-(

Matt R

unread,
Jan 9, 2014, 10:59:51 AM1/9/14
to tas...@googlegroups.com
Could you post the whole manifest? Maybe there's more you need to specify.

Matt

Ronny Brandt

unread,
Jan 10, 2014, 9:44:32 AM1/10/14
to tas...@googlegroups.com
I dont know, if the attached manifest is usable because its only extracted using 7zip and I'm not able to read it. I personally used Android System Info on my phone to read the manifest...


2014/1/9 Matt R <matthew.r...@gmail.com>
Could you post the whole manifest? Maybe there's more you need to specify.

Matt

--
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/ZAa-2nI14Gk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/groups/opt_out.

AndroidManifest.xml

Matt R

unread,
Jan 10, 2014, 2:08:15 PM1/10/14
to tas...@googlegroups.com
Yeah, I can't seem to read it either.  Maybe a screenshot from within Android System Info?  Just of the parts around the intent actions you found.

Matt

Ronny Brandt

unread,
Jan 10, 2014, 5:14:53 PM1/10/14
to tas...@googlegroups.com

Here you have the screenshot...

Am 10.01.2014 20:08 schrieb "Matt R" <matthew.r...@gmail.com>:
Yeah, I can't seem to read it either.  Maybe a screenshot from within Android System Info?  Just of the parts around the intent actions you found.

Matt

--
Screenshot_2014-01-10-23-13-37.png

Matt R

unread,
Jan 10, 2014, 7:47:22 PM1/10/14
to tas...@googlegroups.com
Yeah, looks right to me.  Should definitely target "Broadcast Receiver".  If it doesn't work, it might be that the app checks who sent the broadcast and only responds to if it was its own widget.  You could try contacting the app developer(s).

Matt

CazMaz

unread,
Jan 13, 2014, 11:53:32 AM1/13/14
to tas...@googlegroups.com
Hi Ronny,

I'm not sure if the newer version of tasker is setup the same way, but in 1.6u2m, the features you want to use are already part of the tasker choices.
Look under Media when adding a step in the task.

Create task named (Ex. PlaySong), then in that task, +, Media, Music Play. Or any other choices you want. Use the magnifying glass to select the music file, then loop or not, etc. If you want to play a group of sounds/songs, put them in a file directory, and use the Play Dir, then the stop and play actions can control the media.
Make a separate task for each action you want to control - Play, Stop, Pause, etc.

You could also create a scene, add your own buttons as an overlay, blocking, and control the music from there.
Or, if you really want to enter the dark side, keep going with the intents, it will be educational for all of us.

With the intents, you will need to use the mime type and the URI encoded data (probably formatted as "content:/mnt/pathtofile.mp3" as well as figuring out the correct package, which might be something like (android.audio.music) as the receiver, but that is a guess!

I'll keep digging around a bit,
Cazmaz

Ronny Brandt

unread,
Jan 13, 2014, 12:25:25 PM1/13/14
to tas...@googlegroups.com

Hello Cazmaz,

thanks for your response,  but unfortunately its not enough for me - the most important thing I need is to control the audible action to switch back 30 seconds which is not possible using a "normal" audio control.

Ronny

--

CJ Shrader

unread,
Sep 16, 2014, 10:50:31 AM9/16/14
to tas...@googlegroups.com
Hey Ronny,

Any chance you figured this out or a workaround? I'm trying to do the same thing using Tasker. I've tried it using the Send Intent task and also tried it using AutoShare to send the intent, but neither work.

All I'm trying to do is Play even. No idea why this wouldn't work. (Using the built in media play won't work, and using AutoShare to send a "play" command works great for everything except Audible.)

CJ

Eric

unread,
Sep 16, 2014, 1:06:45 PM9/16/14
to tas...@googlegroups.com
I had success with auto share. Below is a profile I use to skip the current song based on the last media app I used. All the intents from the site share website worked for me and could be app specific. I don't use audible but it is an option on my phone through Auto share.

Profile: Music Next Song By Vol (51)
Cooldown: 7
Event: Variable Set [ Variable:%VOLM Value:0 ]
State: Variable Value [ %PACTIVE ~ *music* ]
Enter: Music Next Song By Vol (60)
A1: Vibrate [ Time:150 ]
A2: If [ %Lastmedia ~ Play ]
A3: AutoShare [ Configuration:Package: com.google.android.music
Class: com.google.android.music.playback.MediaButtonIntentReceiver
App: Media
Action: Press Next Key Down
Next Button Down: 87 Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ]
A4: AutoShare [ Configuration:Package: com.google.android.music
Class: com.google.android.music.playback.MediaButtonIntentReceiver
App: Media
Action: Press Next Key Up
Next Button Up: 87 Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ]
A5: Else If [ %Lastmedia ~ Pandora ]
A6: AutoShare [ Configuration:Package: com.pandora.android
Class: com.pandora.android.activity.NewMediaButtonBroadcastReceiver
App: Media
Action: Press Next Key Down
Next Button Down: 87 Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ]
A7: AutoShare [ Configuration:Package: com.pandora.android
Class: com.pandora.android.activity.NewMediaButtonBroadcastReceiver
App: Media
Action: Press Next Key Up
Next Button Up: 87 Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ]
A8: Else If [ %Lastmedia ~ Frat ]
A9: AutoShare [ Configuration:Package: com.fratmusic.fratmusic2
Class: com.fratmusic.fratmusic2.media.MusicIntentReceiver
App: Media
Action: Press Next Key Down
Next Button Down: 87 Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ]
A10: AutoShare [ Configuration:Package: com.fratmusic.fratmusic2
Class: com.fratmusic.fratmusic2.media.MusicIntentReceiver
App: Media
Action: Press Next Key Up
Next Button Up: 87 Package:com.joaomgcd.autoshare Name:AutoShare Timeout (Seconds):10 ]
A11: Else If [ %Lastmedia ~ Beyondpod ]
A12: Perform Task [ Name:Music Btooth Pod Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
A13: End If
A14: Media Volume [ Level:2 Display:Off Sound:Off ] If [ %PACTIVE ~ *music mic* ]
A15: Perform Task [ Name:Volume Gradual Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ] If [ %PACTIVE ~ *music vg* ]

CJ Shrader

unread,
Sep 16, 2014, 1:17:24 PM9/16/14
to tas...@googlegroups.com

Eric,

Thanks for the reply. The problem is if Audible was not the last app to to be handling audio, then the basic actions that AutoShare has won't work. It's like the app is just ignoring all requests until the "play" button is pressed again (Either in app or in the widget), at which point all of the AutoShare commands begin to work again. Unfortunately for me, I'm trying to move from automatically playing Google Music (Which autoshare works great for) to automatically playing Audible, and Audible isn't playing nice. So I hope that using its own intents may work better.

CJ

Eric Corbin

unread,
Sep 16, 2014, 1:29:19 PM9/16/14
to tas...@googlegroups.com

I think I understand what you are saying. Once you set up an intent in Auto share have you selected audible in the advanced settings section? Because if I didn't specifically choose the package then I had the same problem as you. Also I paid for the full version of auto share so maybe you have to pay in order to specify that app. That's probably why I bought it.

--
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/ZAa-2nI14Gk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

CJ Shrader

unread,
Sep 16, 2014, 1:38:17 PM9/16/14
to tas...@googlegroups.com
I have selected Audible as the application and I do have the full version. I think the issue is on Audible's side, not anything else. It just doesn't play nice.

That's why I was hoping using Audible's own intents might work better.

CJ
Reply all
Reply to author
Forward
0 new messages