简体   繁体   中英

Check if system is in Power saving mode

Is there a way i could know whether the system is in power saving mode when :

  • user has enabled the power saver mode on manually
  • the system goes into power saving mode when the battery is about to die?

I have noticed that the power saver mode kills my services, and my activity is dependent on the services.

Also my application uses wake lock permission.

Is there a way to know the mode is on/off so that I can reduce/limit the activities.

Thanks in advance!

(省电模式)不是AOSP的正式功能,因此无法使用官方android SDK进行检测。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM