Android Development¶
How to develop in Android for DomoDroid.
Install Eclipse Indigo
IDE for java developers
http://www.eclipse.org/downloads/
Install Android SDK r15
http://developer.android.com/sdk/index.html
Install ADT Plugin for Eclipse
http://developer.android.com/sdk/eclipse-adt.html
Copy domodroid directory from svn tree to a place where Eclipse can access it.
Start Eclipse
File, New, Project, Android, Android Project
Project Name: DomoDroid
Select Create project from existing source
Location Browse to domodroid directory
Click Next
Select Build Target (Android 2.3.3)
Click Next
Application Name: DomoDroid
Click Finish
You can now click on DomoDroid and unfold the project folders.
A small overview:
Android 2.3.3 - contains the Android library
src - contains the source code of project
bin - here the binaries are generated (DomoDroid.apk is the package)
res - resources
drawable-* - here you can find the images
menu - menu items used
layout - the layout of the interface screens
values-* - the text strings
Now to compile and run a new binary:
Click on the green arrow in the toolbar, Run As
Select Android Application
The emulator will start, and a DomoDroid.apk is generated inside the bin directory of your project.
If you have installed the USB driver for your Android phone http://developer.android.com/sdk/win-usb.html
Simply connect it to your machine, select USB debug on your phone and Run As.
And it will install and start the apk directly on your phone.
You can also copy it manually to your devices with adb install <name apk>
Resources¶
Comment¶
Updated by: rdnzl, Updated 6 months ago
Access count: 1283 since 2011-11-14
Attached Files¶