run.sh 426 Bytes
Newer Older
1 2
#!/bin/sh
cd `dirname $0`
3
PROJECT_NAME=hello-android
4 5

# copy file to device (usually takes 10 seconds or more)
6
adb push ./bin/$PROJECT_NAME /data/bin/sample/$PROJECT_NAME || return
7 8 9 10 11 12 13 14

# 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
15
adb pull /mnt/sdcard/HelloAndroid.png || return