|
|
#summary How to check out the android application for AmbientTalk from SVN and configure it in Eclipse.
|
|
|
#labels Howto,Tutorial
|
|
|
|
|
|
# Before starting
|
|
|
|
|
|
1. [Install the Android SDK and ADT Plugin for Eclipse](http://developer.android.com).
|
|
|
1. **Optional**: Checkout and configure the 4 AmbientTalk projects as explained in [the dedicated wiki page](http://code.google.com/p/ambienttalk/wiki/ConfiguringEclipse).
|
|
|
*The android-core project already contains an ambienttalk.jar, so this is only necessary if you want to change the interpreter.*
|
|
|
|
|
|
# Check out the Android-core AmbientTalk project
|
|
|
|
|
|
This project contains a wrapper around IAT which sets up the environment correctly.
|
|
|
|
|
|
- Checkout the "android-core" project located at https://ambienttalk.googlecode.com/svn/android-core/trunk . It will automatically configure itself.
|
|
|
- You may need to clean it, as the SVN checkout overwrites some java compiler options.
|
|
|
|
|
|
# Check out the Android AmbientTalk project
|
|
|
|
|
|
This project contains the GUI for the interpreter. If you want to use AmbientTalk in a new project, only follow the section below.
|
|
|
|
|
|
- Checkout the "android" project located at https://ambienttalk.googlecode.com/svn/android/trunk . It will automatically configure itself.
|
|
|
|
|
|
# Running the Android AmbientTalk application
|
|
|
|
|
|
- Open the android SDK and AVD Manager. You will see its icon at the menu bar. Otherwise, go to Window -> Android SDK and AVD Manager.
|
|
|
|
|
|
android/androidAVDManager.png
|
|
|
|
|
|
- Go to the Virtual Devices view and click the button "New.." to create a new AVD (Android Virtual Device). Set the target to at least Android 2.2. We recommend 2.3 or higher, as they introduced a JIT compiler in that release.
|
|
|
|
|
|
android/androidNewAVD.png
|
|
|
|
|
|
- If you now click 'run' on your project, either an emulator will be launched or the application will be installed and run on your connected phone. Congratulations!
|
|
|
- If you want to force a specific run configuration to a specific device:
|
|
|
1. Add a new run configuration for the AmbientTalk android application. Select the menu item "Run -> Run Configurations.." then double-click "Android Application".
|
|
|
1. Go to the Target tab menu of the run configuration, click on "Automatic", and select your newly created AVD from the list.
|
|
|
1. Note: If a real device is connected, Android will try to deploy the application on the real device. Otherwise, it deploys the application on one of the AVD devices already running. If no AVD is already running it chooses one AVD of the list of available AVD in the system. If you have selected a preferred AVD device in the Target menu, it will chose this one. |