summaryrefslogtreecommitdiff
path: root/README.txt
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-05-29 16:06:31 +0200
committerParménides GV <parmegv@sdf.org>2013-05-29 16:09:14 +0200
commita80f3ce0b074b99b6f66bf0c9db28f89d53e5847 (patch)
tree5d1664c823413edcd95b4ab4fe3981c75b55d7c5 /README.txt
parent086a98886a5b28c1f9426fd40c093bf2affa960e (diff)
README now suggest to use scripts.
I've entered a new script: compile.sh I've also simlinked README.txt to README. In the future, if we want to write another file in another format (MarkDown?), we will only have to change the target of the README file.
Diffstat (limited to 'README.txt')
-rw-r--r--README.txt19
1 files changed, 6 insertions, 13 deletions
diff --git a/README.txt b/README.txt
index badaaf54..7d57a6e3 100644
--- a/README.txt
+++ b/README.txt
@@ -12,8 +12,7 @@ Instructions to compile
-----------------------
1. cd $PROJECT_LOCATION/leap_android
-2. android update project --path $PROJECT_LOCATION/leap_android/
-3. ant debug
+2. ./compile.sh
Postconditions
--------------
@@ -33,9 +32,8 @@ Preconditions
Instructions to run on the emulator
-----------------------------------
-1. Run emulator: emulator @AVD-NAME (avd names are the names of the files in ~/.android/avd with extension .avd).
- - If you want to test the app from scratch, run emulator -wipe-data @AVD-NAME
-2. Run app: adb shell am start se.leap.leapclient/.Dashboard
+1. cd $PROJECT_LOCATION/leap_android
+1. Run script: ./run.sh @AVD-NAME . (avd names are the names of the files in ~/.android/avd with extension .avd).
Postconditions
--------------
@@ -56,17 +54,12 @@ Preconditions
Instructions to debug from the console
-----------------------------------
-1. emulator @AVD-NAME # (avd names are the names of the files in ~/.android/avd with extension .avd).
- - emulator -wipe-data @AVD-NAME # If you want to test the app from scratch
-2. adb install -r $PROJECT_LOCATION/leap_android/bin/LEAP\ Android-debug.apk # Install the new version of the application
-3. adb shell am start -D se.leap.leapclient/.Dashboard # Run app
-4. pid=`adb shell ps | grep leap | awk '{print $2}'` # Identify the process id (pid) of the current leapclient process instance
-5. localport=`expr $RANDOM % 65536`
-6. adb forward tcp:$localport jdwp:$pid
-7. jdb -sourcepath $PROJECT_LOCATION/leap_android/src/ -attach localhost:$localport
+1. cd $PROJECT_LOCATION/leap_android
+2. Run script: ./debug.sh @AVD-NAME . (avd names are the names of the files in ~/.android/avd with extension .avd).
Postconditions
--------------
1. LEAP Android is running.
2. LEAP Android does not show the message "Application LEAP for Android (process se.leap.leapclient) is waiting for the debugger to attach".
+3. You are in a jdb debuggin session.