mmm
mmm

Reputation: 268

How to run, test and handle low battery popup

I'm currently developing application on Android Studio. My problem is when application is working and shows low battery popup everything get freeze. I have to minimalize and maximalize back application. I guess there is something wrong with onWindowFocusChanged, onPause or onResume methods.

Anyway, I want to know how to simulate on emulator low battery popup. I don't want to wait one hour for my battery get low. What should i do?

Upvotes: 0

Views: 157

Answers (1)

Xavier Rubio Jansana
Xavier Rubio Jansana

Reputation: 6583

In the three dots button you have controls to change battery status in the emulator:

Extended controls

Upvotes: 1

Related Questions