Home > DeveloperSection > Forums > What is MVC pattern in Android?
Samuel Fernandes
Samuel Fernandes

Total Post:155

Posted on    October-07-2014 12:31 AM


 1 Reply(s)
 624  View(s)
Rate this:
Is it possible to implement the Model-View-Controller pattern in Java for Android? Or is it already implemented through Activities? Or is there a better way to implement the MVC pattern for Android?

Kamlakar Singh
Kamlakar Singh

Total Post:194

Posted on    October-07-2014 12:33 AM

In Android you don't have MVC, but you have the following:

  1. You define your user interface in various XML files by resolution, hardware, etc.
  2. You define your resources in various XML files by locale, etc.
  3. You extend clases like ListActivity, TabActivity and make use of the XML file by inflaters.
  4. You can create as many classes as you wish for your business logic.
  5. A lot of Utils have been already written for you - DatabaseUtils, Html.

Modified On Oct-07-2014 12:33:40 AM

Don't want to miss updates? Please click the below button!

Follow MindStick