Skip to content

Instantly share code, notes, and snippets.

@alterakey
Created September 17, 2011 05:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alterakey/1223663 to your computer and use it in GitHub Desktop.
Save alterakey/1223663 to your computer and use it in GitHub Desktop.
An experimental app launcher for Android
#/bin/bash
intent=$1
pkg=$2
activity=$3
intr() {
adb shell am start -a android.intent.action.MAIN -c android.intent.category.HOME
exit 0
}
trap intr INT
adb shell am start -a $intent -n $pkg/$activity &
adb logcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment