WHAT IS MVC PATTERN IN ANDROID?

Samuel Fernandes

Total Post:159

Points:1117
Posted by  Samuel Fernandes
 941  View(s)
Ratings:
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?
  1. Kamlakar Singh

    Post:194

    Points:1396
    Re: What is MVC pattern in Android?

    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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!