Please describe System powersaving_switch ?

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
autobear
Posts: 6
Joined: 16 Oct 2015 07:22

Please describe System powersaving_switch ?

Post by autobear » 16 Oct 2015 07:27

Dear ALL,

Automagic is a great program and I bought it.

I would like to know how did you extract the power saving status using System powersaving_switch ?

Did you use android.os.PowerManager.WakeLock or what ?

Thank You

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Please describe System powersaving_switch ?

Post by Martin » 16 Oct 2015 19:50

Hi,

Automagic uses the official API to check this:
http://developer.android.com/reference/ ... SaveMode()

Regards,
Martin

autobear
Posts: 6
Joined: 16 Oct 2015 07:22

Re: Please describe System powersaving_switch ?

Post by autobear » 17 Oct 2015 08:55

Thank you Martin :D

Post Reply