What's the best way to implement a cohesive model layer for Android MVC apps?

I am new to Android and Java, although I have really been in awe of what I have learned so far. I'm a little unsure how to implement the model layer.

I came from a background in PHP web applications with Zend Framework and the like. I am used to having an ORM component through which the model maps to the database. I haven't seen anything like this for Android yet, although I may just not look heavy enough.

Are there any good tutorials, articles, third party libraries, etc. that specifically address customizing your model layer for Android apps?

Thanks!

+2


a source to share


3 answers


Take a look at ActiveAndroid. This is the active Android ORM style. Here's a sample project: https://www.activeandroid.com/help/sample-project/



+2


a source


Another option for Android ORM is ORMLite. It uses native Android OS calls to support SQLite on Android and also supports JDBC for other types of databases.



http://ormlite.com/

+3


a source


There is a lightweight SQLite chunk "android-active writing" designed with persistent models in mind. This allows Java objects to be transparently persisted, similar to what ActiveRecord does in Ruby or CakePHP. Try http://code.google.com/p/android-active-record/

+1


a source







All Articles