- Sep 7, 2019
- 8
- 0
- 0
I have an Android based in-dash car stereo which I for the most part, love. The included media player app is really lame but it does one important thing that no other 3rd party player does-- It remembers what it was playing and where it was at when I turn off the ignition, and automatically resumes there when I restart the car.
I have found though, that with most of the 3rd party players, if I remember to hit pause before I turn off the key, I can [usually] un-pause it from there when I restart. And weirdly, if I don't hit pause but restart the car again within just a few minutes (quick run in the store?) it does at least remember where it was and I just have to hit play. More than a few minutes though, and the 3rd party players will typically remember what playlist it was on, and typically which song, but not where in the song. I can restart it at the beginning of whatever song it was last playing. But since I have many that are 40+ minute full albums that's not so practical.
My thought was to use IFTTT [or similar] to trigger on the "sleep" event when the key is turned off and send a Media_Pause command, and again for "wake" and sent a Media_Play. BUT problem is-- I can't figure what, if any, system events are being triggered when I turn off the key. Its certainly not the normal Sleep or Power_Down events.
Is there a diagnostic util or some logging I can use figure the event(s) out? Or can someone suggest a better solution?
(I've seen how to adb_logcat in my own software, but that doesn't help here and capturing/Logging EVERY system event seems impractical and a lot to wade through.)
I have found though, that with most of the 3rd party players, if I remember to hit pause before I turn off the key, I can [usually] un-pause it from there when I restart. And weirdly, if I don't hit pause but restart the car again within just a few minutes (quick run in the store?) it does at least remember where it was and I just have to hit play. More than a few minutes though, and the 3rd party players will typically remember what playlist it was on, and typically which song, but not where in the song. I can restart it at the beginning of whatever song it was last playing. But since I have many that are 40+ minute full albums that's not so practical.
My thought was to use IFTTT [or similar] to trigger on the "sleep" event when the key is turned off and send a Media_Pause command, and again for "wake" and sent a Media_Play. BUT problem is-- I can't figure what, if any, system events are being triggered when I turn off the key. Its certainly not the normal Sleep or Power_Down events.
Is there a diagnostic util or some logging I can use figure the event(s) out? Or can someone suggest a better solution?
(I've seen how to adb_logcat in my own software, but that doesn't help here and capturing/Logging EVERY system event seems impractical and a lot to wade through.)