Skip to content

Instantly share code, notes, and snippets.

@ytkhs
Created August 13, 2011 04:37
Show Gist options
  • Save ytkhs/1143486 to your computer and use it in GitHub Desktop.
Save ytkhs/1143486 to your computer and use it in GitHub Desktop.
broadcast battery status changing event to android emulator from terminal
$ 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