Listen to an intent

277 views
Skip to first unread message

Alexandre Figaro

unread,
Oct 14, 2014, 4:19:48 AM10/14/14
to tas...@googlegroups.com
How to listen for the "com.android.music.metachanged" intent and include the extra named "album_art_path" using Tasker or other plugins? I want to use this intent to get the file path of album art of the current song.

Pent

unread,
Oct 14, 2014, 4:31:30 AM10/14/14
to tas...@googlegroups.com
Event Received event, if it's sent to broadcast receivers.

See Intents in the userguide.

Pent

Alexandre Figaro

unread,
Oct 14, 2014, 4:39:55 AM10/14/14
to tas...@googlegroups.com
Ok. But there is no extra field in Intent Received. How would I include "album_art_path"?

Pent

unread,
Oct 14, 2014, 6:18:14 AM10/14/14
to tas...@googlegroups.com



Ok. But there is no extra field in Intent Received. How would I include "album_art_path"?

I'm thinking you didn't read the Intents section of the userguide which I mentioned.

Pent

Alexandre Figaro

unread,
Oct 14, 2014, 8:20:54 AM10/14/14
to tas...@googlegroups.com
In fact, I had read the intent section well before posting in this forum. What I haven't well understood is where should I put the extra, in which text field. I had understood that for putting an extra in Intent Received category , I should convert it into a variable, in lowercase. It would be nice if you could publish the task here.

Pent

unread,
Oct 14, 2014, 8:57:51 AM10/14/14
to tas...@googlegroups.com
At the bottom of the document 'accessing intent data', it's described clearly.

I don't see the need to reproduce a new example here.

Pent

Alexandre Figaro

unread,
Oct 14, 2014, 11:46:57 PM10/14/14
to tas...@googlegroups.com
Ok i have understood how it works now. So, I made a profile like this:

PROFILE:
Intent Received: com.android.music.metachanged
Cat: None
Cat: None
Scheme:
Mime type:
Priority: Normal

TASK:
Flash: %album_art_path

The intent "com.android.music.metachanged" is sent everytime a track is played, paused, resumed or changed, according to what I have read about this intent.

But %album_art_path only flashes when i change track, then pause and then resume. I use Gonemad Music Player. How to listen for the intent everytime the track is changed?

Pent

unread,
Oct 15, 2014, 1:38:57 AM10/15/14
to tas...@googlegroups.com
Tasker doesn't make any decisions about the intent. If the variable isn't set, there was no
extra in the intent that was received.

Pent
Reply all
Reply to author
Forward
0 new messages