I use partial wakelock method to keep my app running when screen is off.
The code works fine if screen is off and phone is connected via adb, but not when unplugged.
It seems debug mode prevents the phone to get into sleep.
Since the issue happens only when not connected to PC, It is not possible to debug it either.
Is there some way to be able to debug without being connected to PC ? or a workaround?
The code works fine if screen is off and phone is connected via adb, but not when unplugged.
It seems debug mode prevents the phone to get into sleep.
Since the issue happens only when not connected to PC, It is not possible to debug it either.
Is there some way to be able to debug without being connected to PC ? or a workaround?