Created
August 13, 2011 04:37
-
-
Save ytkhs/1143486 to your computer and use it in GitHub Desktop.
broadcast battery status changing event to android emulator from terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ adb shell | |
am broadcast -a android.intent.action.ACTION_POWER_CONNECTED | |
am broadcast -a android.intent.action.ACTION_POWER_DISCONNECTED | |
am broadcast -a android.intent.action.BATTERY_OKAY | |
am broadcast -a android.intent.action.BATTERY_LOW |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment