1

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?

jonepatr
  • 7,769
  • 7
  • 30
  • 53

2 Answers2

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
  • Does it exist a ORM-library also? – jonepatr May 20 '11 at 16:49
  • 1
    Well, 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
0

Take a look at this posting here: MVC pattern on Android

Community
  • 1
  • 1
Haphazard
  • 10,900
  • 6
  • 43
  • 55