source: android/README.txt @ 6d938a1

Last change on this file since 6d938a1 was 6d938a1, checked in by zzz <zzz@…>, 9 years ago

android build fixes

  • Property mode set to 100644
File size: 1.3 KB
Line 
1These instructions are for a recent Android SDK (1.6 or later)..
2Should also still work with a 1.5 SDK.
3The build file is not compatible with the 1.1 SDK any more.
4
5#Download the SDK from http://developer.android.com/sdk/index.html
6#Unzip the android SDK in ../../
7#So then the android tools will be in ../../android-sdk-linux_86/tools/
8#
9# now go to the available packages tab, check the box and click refresh,
10# and download an SDK Platform
11# Since I2P is configured to run on 1.1 or higher
12# (API 2) download that one. Otherwise you must change the
13# target in default.properties from android-2 to andriod-x
14# where x is the API version.
15
16# create a file local.properties with the following line:
17# sdk-location=/path/to/your/android-sdk-linux_86
18
19#then build the android apk file:
20ant debug
21
22# Create the android 1.1 (API 2) virtual device
23# (don't make a custom hardware profile)
24# A AVD created with the 1.5 SDK will not work with the newer tools
25../../android-sdk-linux_86/tools/android create avd --name i2p --target 2
26
27#then run the emulator:
28../../android-sdk-linux_86/tools/emulator -avd i2p &
29
30#then wait a couple minutes until the emulator is up
31#then install the I2P app (ONE TIME ONLY)
32ant install
33
34#then run the debugger
35../../android-sdk-linux_86/tools/ddms &
36
37#to rebuild and reinstall to emulator:
38ant reinstall
Note: See TracBrowser for help on using the repository browser.