Search code examples
androidmodel-view-controllerbusiness-logic

Developing Model and using it for both Mobile and Tablets


I have a team that developed an iOS App for both iPhone and iPad.

They used MVC (in built with iOS may be?). They built the business logic and used it both on iPhone and iPad with just different UIs / Views and same controller (possibly?).

How do we achieve this in Android? MVC / MVP? How do we structure the files in this case?


Solution

  • You got that described in Android SDK documentation here. From my experience - if you want to do this right, you have to design it right and split your application into fragments, otherwise you would end unsuccessfully trying to make layout files for your tablet version that would make app look less crappy it would be looking w/o proper design.