izivkov / CasioGShockSmartSync

Apache License 2.0
112 stars 12 forks source link

Add an action to "Play Next Song" #67

Closed izivkov closed 7 months ago

izivkov commented 8 months ago

Investigate adding an action to play next song.

izivkov commented 8 months ago

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.

futtman commented 8 months ago

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.

futtman commented 8 months ago

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

izivkov commented 8 months ago

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.

futtman commented 8 months ago

thank you in advance for your efford

izivkov commented 8 months ago

No problem. Do you think you can test it if I sent you an APK?

On Tue., Jan. 16, 2024, 1:17 p.m. futtman, @.***> wrote:

thank you in advance for your efford

— Reply to this email directly, view it on GitHub https://github.com/izivkov/CasioGShockSmartSync/issues/67#issuecomment-1894270036, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7M37QJMDLPG3HUCXA5FQTYO273JAVCNFSM6AAAAABB43HP7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUGI3TAMBTGY . You are receiving this because you authored the thread.Message ID: @.***>

izivkov commented 8 months ago

@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

futtman commented 8 months ago

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....

futtman commented 8 months ago

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

izivkov commented 8 months ago

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.

izivkov commented 8 months ago

@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.

futtman commented 8 months ago

looking forward to it...thank you again

izivkov commented 8 months ago

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

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

futtman commented 8 months ago

hi it works with no issues

izivkov commented 8 months ago

Great! This will be in version v11.9 on the Playstore and F-DROID. It takes about a week to appear on F-DROID.

Thanks for suggesting this feature and helping test it.

On Tue, Jan 23, 2024 at 5:59 AM futtman @.***> wrote:

hi it works with no issues

— Reply to this email directly, view it on GitHub https://github.com/izivkov/CasioGShockSmartSync/issues/67#issuecomment-1905797382, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7M37WTRJQMIZWVYDX6JD3YP6JXRAVCNFSM6AAAAABB43HP7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVG44TOMZYGI . You are receiving this because you modified the open/close state.Message ID: @.***>

futtman commented 8 months ago

thank u