Software

AIDE requires a complex install that comprehends the following pieces of software: java, maven, ant, Android SDK, and Eclipse/Android Studio. Depending on the intended use, the following setups are necessary:

Once you have installed all required software and performed basic tests, you may proceed to the tutorial section and try out some examples.

All the software developed for AIDE is licenses under GPL v3. The intructions to install each configuration follows:

Prerequisites

Some considerations that should be considered before testing the software:

Basic install

To use AIDE, there is a basic set of elements you should have installed in the computer:

PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin:$M2_HOME/bin

Development in AIDE is focused on the command console or terminal. Specific steps can rely on different IDEs, as the developer feel more comfortable with.

It is not required, but it is reccommended to have too git installed, since most examples delivered from this site are hosted in git repositories. It is not mandatory because those sites permit as well downloading the git repository as zip files. Any option will be fine.

Testing the basic install

To test the installation, the following commands should be recognised

$ java
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
...
$ javac

Usage: javac <options> <source files>
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
...
$ mvn

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
$ ant

Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar
Buildfile: build.xml does not exist!

If any of them is not recognised, a message of the command not found kind will be shown

$ ant

ant: No such file or directory

Now, to try out the AIDE specific software, a proper install of the PATH framework plus Android SDK will be needed.

Basic install for basic AmI systems

In order to run simulations that require interacting with Android devices, you need to meet the following requirements:

PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools)

Testing the basic install

Now, to test if the install was right, open a console and type:

$ android

The android GUI should open. Now, let us create a smartphone

$ echo no|android create avd --force -n "Smartphone1" -t "android-19" -c 100M --skin WVGA800 --abi x86 -a --device  "Nexus S"
Created AVD 'Smartphone1' based on Android 4.4.2, Intel Atom (x86) processor,
with the following hardware config:
hw.accelerometer=yes
hw.audioInput=yes
hw.battery=yes
hw.dPad=no
hw.device.hash2=MD5:37a2ff6e511626ba3ceddec8264474be
hw.device.manufacturer=Google
hw.device.name=Nexus S
hw.gps=yes
hw.keyboard=no
hw.lcd.density=240
hw.mainKeys=yes
hw.ramSize=512
hw.sdCard=yes
hw.sensors.orientation=yes
hw.sensors.proximity=yes
hw.trackBall=no
vm.heapSize=48

And run it with the following command, and expect the emulator GUI to appear

$ emulator -avd Smartphone1

Basic install for developing AmI systems

The basic install already enables developing Android apps and their deployment into either real devices or emulated ones. However, this may not be the more user friendly config, if you are used to more visual IDE.

AIDE is prepared to integrate with main trends in Android development, namely Eclipse ADT and Android Studio. Google is supporting only the later one, while the first is temporally unsupported since the second semester of 2015. By now, AIDE support both, but, if there is going to be no support at all for Eclipse platform, efforts will be directed to Android Studio.

Testing the basic install

If you have installed Eclipse, go to the eclipse install folder, run the following and check the Eclipse GUI opens

$ eclipse

If you have Android Studio, go to the Android Studio folder, run the following and check the Android Studio opens

$ sh bin/studio.sh

License

All software distributed in this page is published under the General Public License v3