From ffdb24011403299cff860292511bbc954b5fa700 Mon Sep 17 00:00:00 2001 From: brianleroux Date: Thu, 18 Aug 2011 19:39:27 -0700 Subject: [PATCH] auto launching on debug --- bin/create | 4 ++++ bin/debug | 1 + 2 files changed, 5 insertions(+) diff --git a/bin/create b/bin/create index 1d56114e..07d497a1 100755 --- a/bin/create +++ b/bin/create @@ -48,3 +48,7 @@ echo '' >> $PROJECT_PATH/AndroidManifest.xml # copy in plugins.xml mkdir -p $PROJECT_PATH/res/xml cp ./bin/templates/plugins.xml $PROJECT_PATH/res/xml/plugins.xml + +# leave the id for launching +touch $PROJECT_PATH/package-activity +echo $PACKAGE/$PACKAGE.$ACTIVITY > $PROJECT_PATH/package-activity diff --git a/bin/debug b/bin/debug index 55bb656a..962816f1 100755 --- a/bin/debug +++ b/bin/debug @@ -1,3 +1,4 @@ #! /bin/sh ant debug install +adb shell am start -n $(cat ./package-activity)