How to run cf android client on eclipse

Firmware/software/electronics/mechanics
Post Reply
martin914
Beginner
Posts: 7
Joined: Tue Aug 06, 2013 11:18 pm

How to run cf android client on eclipse

Post by martin914 »

Hi all~

I want to read the coding of crazyflie android client and run it on eclipse, what should i do for doing this? and i downloaded the file from this link https://bitbucket.org/bitcraze/crazyflie-android-client, and after this how can it be running on eclipse?

Thanks.
ssams
Beginner
Posts: 1
Joined: Wed Aug 07, 2013 9:29 am

Re: How to run cf android client on eclipse

Post by ssams »

You need to download the Android SDK and install the Android Development Tools (ADT) plugin for Eclipse in order to run it on your phone (in theory it's possible without the Eclipse plugin, but it's much more comfortable when using it). After installing the SDK, open the SDK Manager (there's a button in the toolbar of Eclipse when the plugin is installed) and install the SDK Platform for API Level 14 (Android 4.0) together with all tools which are marked as "required".
The repository contains the full Eclipse project, so just import it in Eclipse. To run it, select the project and click run; select run as "Android Application" if Eclipse asks you in a dialog. If your phone is connected via USB and debugging enabled (http://developer.android.com/tools/devi ... setting-up) it should automatically install the App and start it on the phone.
derf
Expert
Posts: 163
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: How to run cf android client on eclipse

Post by derf »

If you want to checkout the code from BitBucket directly you would also need to install the Eclipse Mercurial plug-in (Update site: http://mercurialeclipse.eclipselabs.org ... ite/stable).
I'll try to add instructions to the wiki how to setup a development environment for the Crazyflie Android client.

Update: Added correct update site for Eclipse Mercurial plug-in.
Last edited by derf on Tue Oct 15, 2013 3:30 pm, edited 1 time in total.
martin914
Beginner
Posts: 7
Joined: Tue Aug 06, 2013 11:18 pm

Re: How to run cf android client on eclipse

Post by martin914 »

thanks alot..the problem is solved..
derf
Expert
Posts: 163
Joined: Fri May 31, 2013 12:17 am
Location: Germany

Re: How to run cf android client on eclipse

Post by derf »

As promised, I added a page in the wiki "Setting up an development environment for the Crazyflie Android client" (http://wiki.bitcraze.se/projects:crazyf ... :dev_guide).
Please let me know, if anything is missing or incorrect.
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: How to run cf android client on eclipse

Post by tobias »

Great!
Post Reply