Rocket Player: Sending Intent

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Rocket Player: Sending Intent

Post by digitalstone » 08 Jul 2018 17:27

I'm using Rocket Player as my music player for years now.
Now i would like to send commands to it from Automagic.

The action "Control Audio Player" got me there... sort of.
Play/pause works for example.
But when sending a "Next" it either (with or without clarifying a specific app):
- Raises the media volume by 1 (Control type: Media Button)
- Does nothing

Multiple searches on "Rocket Player intent receiving" didn't got me close to an answer.
I came close with the action "Start Activity", but no sigar.

Does anyone have experience with this?
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Rocket Player: Sending Intent

Post by Desmanto » 08 Jul 2018 18:02

I don't use that player. But If it doesn't react to standard media event, then probably Control UI is the last resort. Switch back to the app and use CUI to press the next button (or any other button).
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.

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Rocket Player: Sending Intent

Post by digitalstone » 08 Jul 2018 18:45

I'm sorry, i did not tell that it's going to be send with the Mi Band 2.
It's for during outside and work, when my phone is inside my pocket and need to be quick.
So my screen will be off and CUI isn't an option.

No matter, i'll see what i can do ;)
Thanks anyway Desmanto :)
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Rocket Player: Sending Intent

Post by Desmanto » 08 Jul 2018 18:55

Oh, but still possible though. If you afraid to touch the screen while you turn it on during the flow execution, you can overlay the widget to cover the whole screen, working as kind of protector. Control UI only works on the element beneath it, it won't work at widget. So basically : turn on screen > overlay the widget with action > go to the app > use CUI to press next > turn off screen again. You might want to use proximity sensor as the check, to hide the widget when you remove it from the pocket. So you won't get locked out by the widget.

But honestly it is too hassle, better use other audio player app which support the media event properly.
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.

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Rocket Player: Sending Intent

Post by digitalstone » 08 Jul 2018 19:29

I "sort of" had this idea in my mind but then i thought:
Desmanto wrote:But honestly it is too hassle, better use other audio player app which support the media event properly.
Switching to another app that'll do the trick is the way to go then i believe.
I love Rocket Player because it's no hassle with anything.
But, like Apple products, it's closed as a Swedish bank account.

I'll have to explore and switch :?
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

Post Reply