MartinC
MartinC

Reputation: 556

Power saving mode in Android controlled programmatically?

Is it possible to turn ON/OFF power saving mode from code?

For the time being, I do wakelock acquire and release, but I assume, that is not the same.

Upvotes: 1

Views: 7601

Answers (1)

Anup Cowkur
Anup Cowkur

Reputation: 20563

There aren't any publicly available API's to do this in the SDK. You can use the PowerManager to acquire and release wakelocks but that's about it. Besides, every manufacturer and device might have it's own version of what it means by "power saving mode", so it doesn't make sense to give 3rd party app developers an API to interact with the system in this way.

Upvotes: 5

Related Questions