Skip to content

Installation of required components

Dirk Leinenbach edited this page Jun 19, 2013 · 2 revisions

Introduction

We recommend you to download the latest version of the Android SDK Manager. You need to install the Tools, Android 2.3.3 Gingerbread (API 10) and Android 4.0.3 Ice Cream Sandwich (API 15).

Read Android Tools for more information on how to procede.

Set up Android SDK

root@debian-vm:/# cd /opt/
root@debian-vm:/# wget http://dl.google.com/android/android-sdk_r20.0.1-linux.tgz
root@debian-vm:/# tar -xf android-sdk_r20.0.1-linux.tgz
root@debian-vm:/# export ANDROID_HOME=/opt/android-sdk-linux/

Set up an Android Virtual Device

consistec@debian-vm:~$ /opt/android-sdk-linux/tools/android create avd -n TestDevice -t android-10 -c 128M

Check out the source code

$ git clone [email protected]:consistec/doubleganger.git
$ cd syncframework/

Build the framework

$ mvn install

OPTIONAL: without Database setup

$ mvn install -DskipTests

OPTIONAL: with Android tests

$ mvn install -PandroidTest

Install the application on the Virtual Device

$ /opt/android-sdk-linux/platform-tools/adb install AndroidSyncClient.apk

If you want to redeploy the application:

$ /opt/android-sdk-linux/platform-tools/adb install -r AndroidSyncClient.apk
Clone this wiki locally