From 14ce5a243286d6ce0390ef89350eea5875503517 Mon Sep 17 00:00:00 2001 From: zzz Date: Tue, 10 Mar 2009 05:20:48 +0000 Subject: [PATCH] hello world --- android/AndroidManifest.xml | 15 ++ android/README.txt | 18 ++ android/build.xml | 280 +++++++++++++++++++++ android/res/layout/main.xml | 13 + android/res/values/strings.xml | 4 + android/src/net/i2p/router/I2PAndroid.java | 18 ++ 6 files changed, 348 insertions(+) create mode 100644 android/AndroidManifest.xml create mode 100644 android/README.txt create mode 100644 android/build.xml create mode 100644 android/res/layout/main.xml create mode 100644 android/res/values/strings.xml create mode 100644 android/src/net/i2p/router/I2PAndroid.java diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml new file mode 100644 index 000000000..b45a40613 --- /dev/null +++ b/android/AndroidManifest.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/android/README.txt b/android/README.txt new file mode 100644 index 000000000..68719911f --- /dev/null +++ b/android/README.txt @@ -0,0 +1,18 @@ +#Unzip the android SDK in ../../ +#So then the android tools will be in ../../android-sdk-linux_x86-1.1_r1/tools/ + +#then build the android apk file: +ant + +#then run the emulator: +../../android-sdk-linux_x86-1.1_r1/tools/emulator & + +#then wait a couple minutes until the emulator is up +#then install the I2P app +ant install + +#then run the debugger +$A/ddms & + +#to rebuild and reinstall to emulator: +ant reinstall diff --git a/android/build.xml b/android/build.xml new file mode 100644 index 000000000..9f4e7b0b9 --- /dev/null +++ b/android/build.xml @@ -0,0 +1,280 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Creating output directories if needed... + + + + + + + + + + + + Generating R.java / Manifest.java from the resources... + + + + + + + + + + + + + + + + + Compiling aidl files into Java classes... + + + + + + + + + + + + + + + + + + + + + + + + + Converting compiled files and external libraries into ${outdir}/${dex-file}... + + + + + + + + + + + + + Packaging resources and assets... + + + + + + + + + + + + + + + + + + + Packaging resources... + + + + + + + + + + + + + + + + + + + + + + + + + + Packaging ${out-debug-package}, and signing it with a debug key... + + + + + + + + + + + + + + + + Packaging ${out-unsigned-package} for release... + + + + + + + + + + + + + It will need to be signed with jarsigner before being published. + + + + + Installing ${out-debug-package} onto default emulator... + + + + + + + + Installing ${out-debug-package} onto default emulator... + + + + + + + + + + Uninstalling ${application-package} from the default emulator... + + + + + + + diff --git a/android/res/layout/main.xml b/android/res/layout/main.xml new file mode 100644 index 000000000..3bfc31cff --- /dev/null +++ b/android/res/layout/main.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml new file mode 100644 index 000000000..983a304b9 --- /dev/null +++ b/android/res/values/strings.xml @@ -0,0 +1,4 @@ + + + I2PAndroid + diff --git a/android/src/net/i2p/router/I2PAndroid.java b/android/src/net/i2p/router/I2PAndroid.java new file mode 100644 index 000000000..6b65bac52 --- /dev/null +++ b/android/src/net/i2p/router/I2PAndroid.java @@ -0,0 +1,18 @@ +package net.i2p.router; + +import android.app.Activity; +import android.os.Bundle; + +import net.i2p.router.Router; + +public class I2PAndroid extends Activity +{ + /** Called when the activity is first created. */ + @Override + public void onCreate(Bundle savedInstanceState) + { + super.onCreate(savedInstanceState); + setContentView(R.layout.main); + Router.main(null); + } +}