The GenDROID project accelerates your Android developments by providing free online data-centric generators. The generated code is intended to be pasted into your working projects, and then be reworked if needed.
Embedded Database
This tool aims at providing a ready-to-use SQLiteOpenHelper from any SQLite code snippet.Sample
CREATE TABLE fruit (
id INTEGER PRIMARY KEY,
label TEXT NOT NULL,
weight REAL NOT NULL,
price REAL NOT NULL
);
Remote Database
This tool aims at fetching remote JSON data into an Android screen, as a scrollable list of (clickable) items.Warning Don't forget to declare all components and to set the INTERNET permission in your manifest.xml
Why JSON?
- NoSQL databases mostly provide storage as JSON documents and http access.
- Regular databases have to be accessed via a “webservice” layer and JSON is a prevalent exchange format.
What kind of JSON is accepted?
Your JSON must be list-enabled, and thus adhere to either one of the two simple following patterns :
{
"something that": "will be ignored",
"fruits":[
{
"label":"Banana",
"weight":1.201,
"price":2.33
},
…
{
"label":"strawberry",
"weight":2.780,
"price":5.50
}
]
}
[
{
"label":"Banana",
"weight":1.201,
"price":2.33
},
…
{
"label":"strawberry",
"weight":2.780,
"price":5.50
}
]