-
Notifications
You must be signed in to change notification settings - Fork 2
Home
epabst edited this page Oct 7, 2011
·
10 revisions
This is a framework for writing Android Apps using Scala that need entity operations (i.e. CRUD). It is open source so that the community can collaborate to enhance it to make it feature-rich, yet simple to use, and enable high productivity in developing Android Apps.
- ListActivity and Activity implemented for you for each Entity.
- Menu button support for ListActivity (not yet for Activity)
- Context menu support for ListActivity
- SQLite Database auto-generated based on Entity definition in Scala.
- Backup and Restore using Google Backup Service supported for Entity data.
- Foreign Keys supported between Entities
- Default navigation included between them.
- They are great for narrowing results as well.
- Generated data supported, with access to existing Entities.
- Uses Robolectric for unit tests.
- Uses Scala 2.8 and Maven
- Install Android SDK.
- Install robolectric from [here](https://github.com/epabst/robolectric), following the instructions there.
- Copy the included sample-app as a starting point.
- Edit the pom.xml to put in real values.
- Edit the AndroidManifest.xml to put in real values, including a Google Backup Service key.
- Add the XML layouts to res/layout/.
- Add the strings to res/values/strings.xml.
- Add an icon.png to res/drawable
- Add a XxxApplication object that extends CrudApplication.
- Add a XxxCrudType that extends CrudType. This will require referencing the layouts and strings added above. It will also require creating XxxActivity which extends CrudActivity and XxxListActivity that extends CrudListActivity.
- To build and install it on an Android device, run this command:
mvn clean package android:undeploy android:deploy
- Contact me with any questions. I should respond within 24 hours. I’ll document the answers to my questions for future reference.