Setting up an development environment for the Crazyflie Android client
This guide will help you getting started with setting up a development environment for the Crazyflie Android client, running the app from source code and contributing code.
Installation
Requirements
An Android device running version 4.0 or higher (the code might be changed to run on lower versions, but this has not been tested yet)
USB On-the-go (OTG) cable (aka. USB Host cable) to connect the Android device to the Crazyradio dongle
-
Extract the zip file and start Eclipse (adt-bundle-windows-x86-20130917/eclipse/eclipse.exe)
Start the Android SDK Manager (Window → Android SDK Manager)
select Android 4.0 (
API 14) and install all of its components
using an actual Android device for development is recommended
If you still want to use the emulator for development on a Windows machine, then you should use the “Intel x86 Atom System Image”.
(Make sure that you use the Intel x86 Emulator Accelerator (HAXM) when your machine support the VT-x extension. This speeds up the emulator considerably.)
If you have problems installing the ADT environment or setting up the emulator you might find some help here:
Getting the Crazyflie Android client source code
Install a Git client for your operating system
The Eclipse Git plug-in (EGit) is already included in your ADT environment, but you should update it to the latest version
-
or on the commandline:
git clone https://github.com/bitcraze/crazyflie-android-client.git
Running the Android client from source code
-
Enable USB debugging on your Android device (Settings > Developer options)
Connect your PC to the Android device via USB or Wifi
“Run as Android application” (this deploys and installs the APK to your Android device)
Use a USB On-the-go (OTG) cable (aka. USB Host cable) to connect your Android device to the Crazyradio dongle
-
More info about USB drivers, developer options and debugging setup can be found here:
Reporting bugs or requesting features
Contributing your code
Coding standard