[WEAROS] Is it possible to stop the OS from suspending App when the screen turns off?
-
Bit of a pickle,
I've made myself a little Android wear (Wear OS whatever its called these days) App which plays music for personal use, now I've implemented a playlist which works fine with the screen on but once the watch turns the screen off after about 5 seconds of no touch input it seems to semi suspend the App, the music continues to play but once the track ends the QML code doesn't seem to execute until I wake the screen up by hand.
(I can of course just force the screen to stay on with a QAndroidJniObject call but it's going to eat the already pretty bad battery twice as fast and would really be a last resort option)
Anyone know if its possible to stop Android suspending the App so it will work properly?
Cheers
-
@Allstar12345 said in [WEAROS] Is it possible to stop the OS from suspending App when the screen turns off?:
Anyone know if its possible to stop Android suspending the App so it will work properly?
no, and that is for a reason.
You should use a background service which does all the work. The UI then simply is a remote control to it's providing functionality. -
@raven-worx Had a feeling that would be the answer, it's never going to be released so not worth the work for something I use twice a week.
Thanks for answering :)