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)
Start Activity: Google Music Search - How to get song info?
Moderator: Martin
Re: Start Activity: Google Music Search - How to get song in
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
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
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)
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
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.
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.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Start Activity: Google Music Search - How to get song in
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
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
Thank you Desmanto and especially Colabi for the flow! That works! Amazing!