izivkov/CasioGShockSmartSync

Add an action to "Play Next Song"

izivkov opened this issue · 16 comments

Investigate adding an action to play next song.

What music player wiuld that action control? YouTube Music? I'm am not that familiar with music apps and if there is a generic command for Android to start a default player and play music.

hi.wow that was fast.
for me it is spotify but i guess generic music control would work too as the player would anyway run in the background.

for me it would be enough to just jump to the next track when music is already playing

OK, I will experiment with it. It needs to be a realible solution, otherwise people will get frustrated and will complain.

I think the "official" music app for android now is "You Tube Music", so this is what I will work with.

thank you in advance for your efford

@futtman

I have added this action:

Note I called it "Skip to next track", because this should work for videos, like YouTube videos, not only songs.

Here is an APK file to try:

https://drive.google.com/file/d/1TnscPpSVJgN9P1R94-5qJxDzM_k7XbJC/view?usp=sharing

It generally works for me, but sometime cannot call the action, and I need to restart to app to get it to work again. I think there is a requirement to complete the action and go back to the initial screen before starting the actions again.

Please play with it for a day or so and let me know your experience.
Thanks

i tested your app and over all it works flawlessly. thank you for that it makes the bluetooth connection of my watch worth.
just to let you know what is not "perfect" yet: the app needs to be the last one opened - means i need to start the music, then open the watch app and then turn off the screen. is there a possibility that the app could run in the background and does not need to be reopened all the time? i am on a14 by the way on sony 5v - could be also my phones problem i know....

anyway thank you again for your work and very quick solution. will send you a beer....cheers mate

Hey @futtman , thanks for your feedback and the beer! Yes, running actions work best when this app is in the foreground, which is true for actions. I will try to see if I can get it to work better while running the app in the background, and will create a release 11.9 soon.

@futtman, the issue with running the app in the background is that it eventually gets swapped out of memory and does not respond to actions. There have been several debates about whether this app should always run in the foreground, similar to the Casio app, but the general consensus is not to. Running in the foreground uses up more battery and is intrusive. In the future, I might add an option in settings for the user to decide if they want to run the app in the foreground. In the meantime, some people have found it useful to use third-party apps like Tasker and MacroDroid to keep this app alive, but I am not sure how well that works. I will create a new version as is and will look into adding an 'always on foreground' option in the future.

looking forward to it...thank you again

@futtman Could you try this APK? I think this will work better. Thanks.

https://drive.google.com/file/d/1zY5Lem805sIcGyMwDQ2Ie4upALeVfv1v/view?usp=sharing

hi it works with no issues

thank u