2009-11-07 19:32:00 +00:00
|
|
|
These instructions are for the 1.5 Android SDK.
|
2009-07-03 22:13:18 +00:00
|
|
|
The build file is not compatible with the 1.1 SDK any more.
|
2009-11-07 19:32:00 +00:00
|
|
|
1.6 and 2.0 SDKs are untested.
|
2009-07-03 22:13:18 +00:00
|
|
|
|
2009-03-10 05:20:48 +00:00
|
|
|
#Unzip the android SDK in ../../
|
2009-07-03 22:13:18 +00:00
|
|
|
#So then the android tools will be in ../../android-sdk-linux_x86-1.5_r2/tools/
|
2009-03-10 05:20:48 +00:00
|
|
|
|
2009-11-07 19:32:00 +00:00
|
|
|
# create a file local.properties with the following line:
|
|
|
|
# sdk-location=/path/to/your/android-sdk-linux_x86-1.5_r2
|
|
|
|
|
2009-03-10 05:20:48 +00:00
|
|
|
#then build the android apk file:
|
2009-07-03 22:13:18 +00:00
|
|
|
ant debug
|
|
|
|
|
|
|
|
# Create the android 1.5 virtual device
|
|
|
|
# (don't make a custom hardware profile)
|
|
|
|
../../android-sdk-linux_x86-1.5_r2/tools/android create avd --name i2p --target 2
|
2009-03-10 05:20:48 +00:00
|
|
|
|
|
|
|
#then run the emulator:
|
2009-07-03 22:13:18 +00:00
|
|
|
../../android-sdk-linux_x86-1.5_r2/tools/emulator -avd i2p &
|
2009-03-10 05:20:48 +00:00
|
|
|
|
|
|
|
#then wait a couple minutes until the emulator is up
|
|
|
|
#then install the I2P app
|
|
|
|
ant install
|
|
|
|
|
|
|
|
#then run the debugger
|
2009-07-03 22:13:18 +00:00
|
|
|
../../android-sdk-linux_x86-1.5_r2/tools/ddms &
|
2009-03-10 05:20:48 +00:00
|
|
|
|
|
|
|
#to rebuild and reinstall to emulator:
|
|
|
|
ant reinstall
|