zzz e86e69f437 - Move network waiter from a thread to the service handler
- Allow quitting while waiting
- Move connected detection to utility class
- Use connected info for displaying buttons
2011-06-23 19:39:01 +00:00
2011-02-05 18:56:06 +00:00
2011-06-10 03:09:35 +00:00
2011-06-22 14:47:19 +00:00
2011-06-05 12:50:04 +00:00
2011-06-22 18:03:21 +00:00

These instructions are for a recent Android SDK (1.6 or later).
These instructions were last updated for SDK Tools Version 11 with
SDK Platform-tools Version 5, June 2011.

The i2p source must be installed in ../i2p.i2p,
or else add i2psrc=/path/to/source in the local.properties file.
Temporary - requires changes in the i2p.i2p.zzz.android branch,
use it instead!

=====================

#Download the SDK from http://developer.android.com/sdk/index.html
#Unzip the android SDK in ../
#So then the android tools will be in ../android-sdk-linux_86/tools/
#
# Run the GUI updater, which you must do to get an SDK Platform:
../android-sdk-linux_86/tools/android &

# now go to the available packages tab, check the box and click refresh,
# and download an SDK Platform
# Since I2P is configured to run on 1.1 or higher
# (API 2) download that one. Otherwise you must change the
# target in default.properties from android-2 to andriod-x
# where x is the API version.

# To run the debugger (ddms) you also need to download the
# "Android SDK Platform-Tools" package from the GUI updater.

# create a file local.properties with the following line (without the leading # of course):
# sdk.dir=/path/to/your/android-sdk-linux_86
# The old property was sdk-location=/path/to/your/android-sdk-linux_86
# but it changed in more recent tools.

# DO NOT create a new project or anything. It's all set up right here for you.

# Create the android 2.2 (API 8) virtual device
# (don't make a custom hardware profile)
../android-sdk-linux_86/tools/android create avd --name i2p --target 8

#then run the emulator:
#  This may take a LONG time the first time (half an hour or more)...
#  Run the debugger to ensure it is making progress
# -no-boot-anim for faster boot
# -dns-server 8.8.8.8 if the router can't reseed
#../android-sdk-linux_86/tools/emulator -avd i2p -no-boot-anim -dns-server 8.8.8.8 &
../android-sdk-linux_86/tools/emulator -avd i2p &

# or to talk to a real phone in debug mode:
# You have to do this if you get a permission error -
# Stop ddms, unplug the phone, do the following,
# then plug in the phone, then start ddms
adb kill-server
sudo adb start-server
adb devices

#then wait a couple minutes until the emulator is up
#then install the I2P app
ant install

#then run the debugger
../android-sdk-linux_86/tools/ddms &

#to rebuild and reinstall to emulator or phone:
ant reinstall

# Now click on the I2P icon on your phone!

#other helpful commands
../android-sdk-linux_86/platform-tools/adb shell
../android-sdk-linux_86/platform-tools/adb pull /some/file/on/emulator some-local-dir/

# copy the Dev Tools app from the emulator to your phone
adb -e pull /system/app/Development.apk ./Development.apk
adb -d install Development.apk

# reinstall an existing apk onto the emulator
adb -e install -r bin/I2PAndroid-debug.apk
Description
No description provided
Readme 198 MiB
Languages
Java 96.6%
Shell 1.5%
HTML 1.4%
Dockerfile 0.3%
AIDL 0.2%