jjo
jjo

Reputation: 154

Simulate Battery State

I am creating an activity which seeks to change the state of LEDs on a device. The LED behavior is handled through an embedded controller with no APIs exposed, so I cannot directly change the state of the LEDs. The state changes based on the charging and battery percentage state of the device. Is there any way for me to simulate a different battery level/charging state via Android Studio to accomplish this?

Upvotes: 0

Views: 280

Answers (2)

Garrett Manley
Garrett Manley

Reputation: 337

You can adjust the battery level on an emulator in the settings.

android emulator settings

Upvotes: 1

Shermano
Shermano

Reputation: 1150

With your emulator opened, just click on this button:

enter image description here

Upvotes: 1

Related Questions