Added simple command line sample for Android

This commit is contained in:
Andrey Kamaev
2011-05-11 22:46:17 +00:00
parent 5e4ca22737
commit 6aea54e308
6 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/sh
cd `dirname $0`
PROJECT_NAME=HelloAndroid
# copy file to device (usually takes 10 seconds or more)
adb push ./bin/armeabi/$PROJECT_NAME /data/bin/sample/$PROJECT_NAME || return
# set execute permission
adb shell chmod 777 /data/bin/sample/$PROJECT_NAME || return
# execute our application
adb shell /data/bin/sample/$PROJECT_NAME || return
# get image result from device
adb pull /mnt/sdcard/HelloAndroid.png || return