---
title: "MVC pattern in Android?"  
description: "MVC pattern in Android?"  
author: "Anonymous User"  
published: 2015-01-02  
updated: 2015-01-02  
canonical: https://www.mindstick.com/forum/12839/mvc-pattern-in-android  
category: "android"  
tags: ["android", "mvc"]  
reading_time: 2 minutes  

---

# MVC pattern in Android?

In [Android](https://www.mindstick.com/articles/13046/10-reasons-why-i-prefer-android-vs-iphone-ios) you don't have MVC, but you have the following:

You define your [user interface](https://www.mindstick.com/interview/22909/user-interface-objects-in-cocoa) in various XML files by [resolution](https://www.mindstick.com/articles/12502/looking-for-an-mba-degree-we-guide-you-with-the-perfect-resolution), [hardware](https://www.mindstick.com/blog/303100/best-pc-hardware-2023), etc.

You define your [resources](https://yourviews.mindstick.com/view/293/renovation-causes-wastage-of-resources) in various XML files by locale, etc.

You extend clases like ListActivity, TabActivity and make use of the [XML file](https://www.mindstick.com/forum/360/how-to-read-xml-file-in-php) by inflaters.

You can create as many classes as you wish for your [business logic](https://answers.mindstick.com/qa/30543/what-is-business-logic).

A lot of Utils have been already written for you - DatabaseUtils, Html.

## Replies

### Reply by Tom Cruser

There is no universally unique MVC pattern. MVC is a concept rather than a solid programming framework. You can implement your own MVC in any platforms. As long as you stick to the following basic idea, you are implementing MVC:\
Model: What to renderView: How to renderController: Events, user inputAlso think about this way, when you program your model, the model should not need to worry about the rendering (or platform specific code). The model would say to the view, I don't care your rendering is Android or iOS or Windows Phone, this is what I need you to render. The view would only handle the platform specific rendering code.\
This is particularly useful when you use Mono to share the model in order to develop cross platform applications.


---

Original Source: https://www.mindstick.com/forum/12839/mvc-pattern-in-android

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
