I'd like my application to be notified when system is about to suspend or sleep (before). No matter to acquire a wake lock: i dont want to inhibit the procedure but only to be notified about it. Thank you. L.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):