How to put android in standByMode
from the CommonsWare Community archivesAt May 21, 2018, 12:46pm, rd7773 asked:
Is it possible to put android device in standby mode programmatically in API level 23 and above on a system app ? There was a method goToSleep() in PowerManager class earlier but it seems that now it has been removed. So what i basically want to know that besides signature and permission requirements, is it even possible now to put android device in standby mode.
At May 21, 2018, 1:00pm, mmurphy replied:
I do not know of any way to do that. If it exists, I would expect it to reside in the device admin/device owner APIs.