Page 1 of 1
Start Activity: Google Music Search - How to get song info?
Posted: 30 Jul 2018 10:37
by aximili
I can create a
Start Activity action
Action = com.google.android.googlequicksearchbox.MUSIC_SEARCH
Wait for result ticked
Then how do you get the song info (artist/title)?
(I only found
this cool tutorial for Tasker)
Re: Start Activity: Google Music Search - How to get song in
Posted: 31 Jul 2018 11:18
by Martin
Hi,
Unfortunately action com.google.android.googlequicksearchbox.MUSIC_SEARCH does not return anything to the calling app so you either have to use action Control UI to read the contents of the screen and parse the song title or use the AutoVoice plugin to get the result (which probably also reads the screen contents).
Regards,
Martin
Re: Start Activity: Google Music Search - How to get song in
Posted: 31 Jul 2018 11:54
by aximili
I see. Thank you Martin for your reply

I don't mind using AutoVoice, I'd also have to use that on Tasker. Control UI is fine too if it works.
Would you mind telling me how to do it in Automagic? (Sorry I'm new, still moving my tasks from Tasker)
Re: Start Activity: Google Music Search - How to get song in
Posted: 31 Jul 2018 18:06
by Desmanto
I try the intent, google assistant stated that the action is not available in my country. Probably should try to change region, but I have to turn off automagic first. If not, there are many flows will be executed when the timezone change, don't wanna mess it up.
You can start the action and when the google recognize the song title, use Control UI to press the element which have the name. You need to Show overlay control during testing, so you can tap the element later. See my index at the control UI section. You can even send command to google assistant using the Control UI.
Re: Start Activity: Google Music Search - How to get song in
Posted: 01 Aug 2018 21:05
by colabi
Try this:
http://automagic4android.com/flow.php?i ... 3f412fc378
Start search for a song with Google, if a match is found, a notification with "song", "artist" will appear in statuabar
Or use this flow like a shortcut:
http://automagic4android.com/flow.php?i ... e27118db0c
Re: Start Activity: Google Music Search - How to get song in
Posted: 05 Aug 2018 11:43
by aximili
Thank you Desmanto and especially Colabi for the flow! That works! Amazing!