[android] updated README file, added project/sdk.paths file

This commit is contained in:
Michael Rash
2013-12-26 20:44:35 -05:00
parent db58f2008e
commit bd0b8a1953
3 changed files with 39 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ EXTRA_DIST = \
android/README \
android/project/src/com/max2idea/android/fwknop/Fwknop.java \
android/project/project.properties \
android/project/sdk.paths \
android/project/ant.properties \
android/project/build.xml \
android/project/custom_rules.xml \
+35
View File
@@ -6,6 +6,41 @@ Max Kastanas <max2idea@users.sourceforge.net>
Based on fwknop C implementation by Damien Stuart
===============================================================================
- For those that are interested in Android development for the fwknop project,
the ./project/sdk.paths file is meant to provide JAVE_HOME and PATH definitions
for the local JVM and the Android SDK and NDK installations. The general work
flow is to first update the paths in in the sdk.paths file to point to the
correct directories on your system, and you will also need to similarly update
the sdk.dir and ndk.dir paths in the ./android/project/ant.properties file.
Then:
$ source ./project/sdk.paths
- Then, start up the Android SDK:
$ android &
- Now, make updates to the fwknop/android/project/ files if implementing new
functionality or fixing bugs. Then, with an Android emulator running:
$ cd ./project
$ ant clean
$ ant debug
$ adb install -r bin/fwknop-android-debug.apk
- or -
$ cd ./project
$ ant clean
$ ant release
$ adb install bin/fwknop-android-release-unsigned.apk
- With the new Android app installed now in the emulator, you can fire it up
and use it to send SPA packets.
### Legacy instructions follow: ###
1. Requirements:
a. Apache Ant (1.7.1)
+3
View File
@@ -0,0 +1,3 @@
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
export PATH=$PATH:/usr/lib/jvm/java-6-openjdk-amd64/bin:/home/mbr/android/android-sdk-linux/tools:/home/mbr/android/android-sdk-linux/platform-tools:/home/mbr/android/android-ndk-rb9