I'm new to developing on android and I wonder how you organize your android projects? I have done a whole bunch of projects in ruby on rails lately, so is there a possibility to use a MVC-style approach?
Asked
Active
Viewed 92 times
1
-
MVC is already build try to make some project and you will see :) – PedroAGSantos May 20 '11 at 16:39
2 Answers
1
Yes, you surely can use a MVC pattern, meaning you will make a different class for the activity
, a class for the view
objects and a class for some "controller" objects. Also, MVC is implemented in many Java library classes, so is preatty handy that you do well with this pattern.
I'll give you an example: the ListView
implements this pattern and you will be able to model the data separatelly from the layout and front-end.

Iulius Curt
- 4,984
- 4
- 31
- 55
-
-
1Well, there is [ActiveAndroid](https://www.activeandroid.com/)(though not free) or if you are looking for some lightweight of Hibernate you could try [this question](http://stackoverflow.com/questions/296587/light-weight-alternative-to-hibernate) – Iulius Curt May 20 '11 at 22:05