Intent interception by multiple apps

49 views
Skip to first unread message

Daniel D

unread,
Dec 1, 2016, 8:26:12 AM12/1/16
to Tasker
Hello there!

I have this profile that reacts to this PowerAmp intent: com.maxmpz.audioplayer.TRACK_CHANGED. Everything works OK in Tasker except that Simple Last.fm Scrobbler doesn't pick the song information anymore. So the question is: if an intent is already picked by an app it will not be available to another?

Thanks!

Pent

unread,
Dec 1, 2016, 8:47:07 AM12/1/16
to Tasker

I have this profile that reacts to this PowerAmp intent: com.maxmpz.audioplayer.TRACK_CHANGED. Everything works OK in Tasker except that Simple Last.fm Scrobbler doesn't pick the song information anymore. So the question is: if an intent is already picked by an app it will not be available to another?



So if you disable the Tasker profile, the intent goes through, otherwise not ?

You're talking about an Intent Received context ? Did you check Stop Event at the bottom of the event ?

There are two types of intent, ordered and unordered, only the ordered type
could be blocked by one of the receiving apps.

Pent

Daniel D

unread,
Dec 1, 2016, 8:53:22 AM12/1/16
to Tasker
Sorry for not putting the description :

Profile: 2.poweramp_data (66)
Priority: 6
Event: Intent Received [ Action:com.maxmpz.audioplayer.TRACK_CHANGED Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: Anon (67)
Abort Existing Task
A1: JavaScriptlet [ Code:var artist = track.split(", catUri");
var title = artist[1].split(", sample");
var title = title[0].split("title=");
var artist = artist[0].split("=");
artist = artist[1];
title = title[1]; Libraries: Auto Exit:On Timeout (Seconds):45 ]
A2: Test Scene [ Name:music Test:Status Store Result In:%status ]
A3: If [ %status ~ hidden | %status ~ uncreated ]
A4: Element Text [ Scene Name:music Element:Title Position:Replace Existing Text:%title Selection: ]
A5: Element Text [ Scene Name:music Element:Artist Position:Replace Existing Text:%artist Selection: ]
A6: Show Scene [ Name:music Display As:Overlay Horizontal Position:100 Vertical Position:200 Animation:System Show Exit Button:Off Continue Task Immediately:On ]
A7: Else
A8: Element Text [ Scene Name:music Element:Title Position:Replace Existing Text:%title Selection: ]
A9: Element Text [ Scene Name:music Element:Artist Position:Replace Existing Text:%artist Selection: ]
A10: End If
A11: Perform Task [ Name:2.hide.scene Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]

I guess I'll have to check on PowerAmp side which kind of intent that is.

Thanks Pent!

Pent

unread,
Dec 1, 2016, 10:00:45 AM12/1/16
to Tasker
I notice from your export that the human-readable version doesn't include the
value of the Stop flag for events, so you will need to tell me manually what it is :-)

Pent

Daniel D

unread,
Dec 1, 2016, 10:18:17 AM12/1/16
to Tasker
The Stop event is not ckecked.

Pent

unread,
Dec 2, 2016, 3:47:44 AM12/2/16
to Tasker

The Stop event is not ckecked.

I can't see in the code anywhere else Tasker could stop the broadcast from going
to other receivers.

I added some debugging code to show whether Tasker is attempting to abort
the broadcast for the beta update later today if you want to try it
(beta v4.9b2 at top of forum)

Pent

Daniel D

unread,
Dec 3, 2016, 9:38:10 AM12/3/16
to Tasker
I've tried again with 4.9b2m and it seems to work now. Simple Scrobbler picked up the 2tracks that I have tried with.
Will further test in the while and come back if I have different findings.
Thanks Pent!
Reply all
Reply to author
Forward
0 new messages