I have a simple text-to-speech app that gets disrupted when screen timeout kicks in.
I already know about the FLAG_KEEP_SCREEN_ON solution, which keeps the screen on while the app's window is in the foreground.
My question is whether it is possible to keep the text-to-speech running even after screen timeout kicks in.
Is this possible at all or does this fundamentally go against the design of Android?
For example, if I re-implement my app as a service, can it continue running while the screen is off?