source: android/README.txt @ 15b9615

Last change on this file since 15b9615 was 885d549, checked in by zzz <zzz@…>, 9 years ago
  • NBigI: Recognize Android
  • Property mode set to 100644
File size: 2.0 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.
4These instructions were last updated for SDK Tools Version 11 with
5SDK Platform-tools Version 5, June 2011.
6
7#Download the SDK from http://developer.android.com/sdk/index.html
8#Unzip the android SDK in ../../
9#So then the android tools will be in ../../android-sdk-linux_86/tools/
10#
11# Run the GUI updater, which you must do to get an SDK Platform:
12../../android-sdk-linux_86/tools/android &
13
14# now go to the available packages tab, check the box and click refresh,
15# and download an SDK Platform
16# Since I2P is configured to run on 1.1 or higher
17# (API 2) download that one. Otherwise you must change the
18# target in default.properties from android-2 to andriod-x
19# where x is the API version.
20
21# To run the debugger (ddms) you also need to download the
22# "Android SDK Platform-Tools" package from the GUI updater.
23
24# create a file local.properties with the following line (without the leading # of course):
25# sdk.dir=/path/to/your/android-sdk-linux_86
26# The old property was sdk-location=/path/to/your/android-sdk-linux_86
27# but it changed in more recent tools.
28
29# DO NOT create a new project or anything. It's all set up right here for you.
30
31# Create the android 1.5 (API 3) virtual device
32# (don't make a custom hardware profile)
33# A AVD created with the 1.5 SDK will not work with the newer tools
34../../android-sdk-linux_86/tools/android create avd --name i2p --target 3
35
36#then run the emulator:
37../../android-sdk-linux_86/tools/emulator -avd i2p &
38
39#then wait a couple minutes until the emulator is up
40#then install the I2P app
41ant install
42
43#then run the debugger
44../../android-sdk-linux_86/tools/ddms &
45
46#to rebuild and reinstall to emulator:
47ant reinstall
48
49# Now click on the I2P icon on your phone!
50
51#other helpful commands
52../../android-sdk-linux_86/platform-tools/adb shell
53../../android-sdk-linux_86/platform-tools/adb pull /some/file/on/emulator some-local-dir/
Note: See TracBrowser for help on using the repository browser.