This project is a development library for the Android platform. The purpose of this library is to ease the data management in an Android application. It is based on the first solution shown in the presentation "Developing RESTful Android applications" that was given at Google I/O 2010.
The repository contains the following folders:
* DataDroid
: the library. You'll import this library in your project
* DataDroidPoC
: the demonstration application. This project contains code showing how to use the DataDroid as well as skeleton classes you can fill for your project. You can find the application on the Play Store here
Follow these steps to use the DataDroid library in your project.
If you want to add a database in your project, you can check the ContentProviderCodeGenerator project to help you create the code for it. (More information)
- Clone the DataDroid project on your computer using git (
git clone [email protected]:foxykeep/DataDroid.git
) - Import the project
DataDroid
in your Eclipse workspace - Add the library to your project using the Android Library Projects feature in the ADT plugin. More information in the Android documentation website
- Copy the skeleton classes from
DataDroidPoC
and change the code according to your project
- Clone the DataDroid project on your computer using git.
It is suggested to use the
git submodule
function to have it inside your repo, because it is easier to reference from Gradle
$ git submodule add [email protected]:foxykeep/DataDroid.git submods/datadroid
- Add a reference to the
DataDroid
project in thesettings.gradle
file (assuming you have it insubmods/datadroid/
):
include ':yourApp', ':submods:datadroid:DataDroid'
- Add the dependency to your app's
build.gradle
:
dependencies {
compile project(':submods:datadroid:DataDroid')
}
DataDroid has been developed for Android 2.2 and greater.
Foxykeep (http://www.datadroidlib.com)
Licensed under the Beerware License :
You can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.