Can an Android app be made to continue playing sound (or play sounds based on certain location or camera based events, like "you are at such and such coffee shop", or "camera detects a car", etc.) while the device is locked?
I am aware of https://developer.android.com/training/tv/playback/options, but it's deprecated and I can't find a viable substitute or a decent explanation as to any potential workarounds.
Thank you
P.S. This is still in conceptual/research stage, so I have no code that I can share :(