问题
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.
来源:https://stackoverflow.com/questions/4668978/how-to-be-notified-about-entering-suspend-mode