Android query

Previous topic - Next topic

MrPlow

Hi Guys

I have a couple of apps that are reporting Background Partial Stuck Wake Locks for 3% of sessions of late.
It doesn't sound a lot but Google guidelines are to aim for less than <1%

one culprit is Audiomix and the Android os version involved is 8.0+ but wondering if anyone else fixed this issue in the past?
In the meantime I will try to find the cause before the novemeber update deadline.

Comp:
Speccy-48k, Speccy-128k, Amigas, PCs

spacefractal

#1
im havent touch mobile dev in quite a long time, since as you know im have stopped it now. But Its property a SLDActivity.Java issue here, not in the c++ code at all.

Im guess, you should try to remove  this code from OnCreate:

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

FLAG_KEEP_SCREEN_ON needs property being turned off when the app is paused, but that is not happens.

There is a Android.ScreenLock(FALSE/TRUE) in Android Extras as well. Standard is TRUE.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrPlow

Thanks SF,

Good suggestions I will look into those!
Comp:
Speccy-48k, Speccy-128k, Amigas, PCs