Together with a colleague I am building an Android app which will include a DB with about 15 tables. Following the Android dev docs from Google we've now written a couple type-classes, a DB-helper, a data-provider, and for every type-class also a sort off adapter.
This works, but my main problem is that for adding a DB table I need to create a new type-class, edit the DB-helper and provider, and create a new adapter. Seeing this is cumbersome and error-prone I suppose it's a perfect recipe for an ORM.
Looking around, the only meaningful project I found was ORMLite. But searching around I don't even have the feeling that ORMLite is the usual way of handling SQLite within Android.
So my questions are as follows:
- What is the most-used/best way of handling rather complex DBs within an Android app? Self-made classes or an ORM like ORMLite?
- Does an ORM like ORMLite make my Android app a lot slower than writing my own accessors?
- Do you have any other recommendations (other ORMs or techniques) for accessing SQLite in Android apps?