Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit bd0b8a1953b12bcabdf15f9c7a3c049fa7c71969 1 parent db58f20
Michael Rash authored
Showing with 39 additions and 0 deletions.
  1. +1 −0  Makefile.am
  2. +35 −0 android/README
  3. +3 −0  android/project/sdk.paths
1  Makefile.am
View
@@ -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 android/README
View
@@ -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  android/project/sdk.paths
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.