A code generator to create Android ContentProvider
This project is a code generator written in Java used to generate Android code. Given a database schema JSON definition file, it will generate all the code you need to add the corresponding ContentProvider in your project.
The java project found in the folder ‘generator’ contains the following folders :
In order to use it, here are the steps to follow :
git clone [email protected]:foxykeep/ContentProviderCodeGenerator.git
). mkdir generator/bin
mkdir generator/bin/input
cd generator/bin
ln -s ../res .
javac $(find ../src -name *.java) -d .
mkdir input
cp ../example/sample.json ./input
java com/foxykeep/cpcodegenerator/Main
You can find in the ‘sample’ folder an example of an Android application which uses the generated ContentProvider
Foxykeep (http://foxykeep.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.