Cilenco / skipTrackLongPressVolume

MIT License
130 stars 14 forks source link

Does not start automatically after boot #12

Open Squizie3 opened 5 years ago

Squizie3 commented 5 years ago

The VolumeKeyLongPressListener isn't set automatically after booting up the device. Currently it is necessary to open the app once after a reboot to make it work properly, but ideally it should just work without having to open the app.

I think there might be 2 reasons for this happening: A) the auto start feature is not yet included in the app or B) my Samsung device is killing the process after it auto starts, but not when you manually open the app. However, all battery saving or RAM-killing features of my phone are already turned off in my settings.

I included a logcat: logcat.txt. Around 23:52 I rebooted the device and some skiptrack activity is present. At 23:57 I tried a long press volume up, but nothing happens. At 23:58 I opened the skiptrack settings for a few seconds and the VolumeKeyLongPressListerer gets set. At 00:00 I tried again a long press volume up, and now it works properly.

P.S. I also have a little feature request: adding support for play/pause when you long press both volume up and volume down at the same time. And releasing the app to the Play Store to increase the number of users of this app.

DVNDigital commented 2 years ago

Did you ever find a fix for this?

HLPJasiri commented 2 years ago

I was able to circumvent this somewhat by creating a task using my Samsung phone's Bixby routines to open the app automatically once my bluetooth headphones connect. There might be a similar way to do this with other automation tools like Tasker.

This way, it's a minor inconvenience at best :)

DVNDigital commented 2 years ago

That sounds like a good idea. I'll try that out. I'm using a Samsung device too so I'll look at Bixby. Thanks again.

DVNDigital commented 2 years ago

For anyone interested, I did some further digging and found a fork by GitHub User: Incineroar which has this feature implemented along with vibration feedback. That fork can be found here. Just follow the instructions on the readme for developers to create the apk.

If you don't want to go through the trouble, you can download the apk that I compiled here.

Graycot commented 2 years ago

Fantastic!

This fork lets me change songs in Youtube Music on Android 12 when it was previously not compatible. Strangely, I can no longer change media using the long hold volume buttons when the screen is off, where I previously could. Funky.

Thanks a ton for pointing this out and compiling the apk! Much appreciated.