android model view presenter/controller examples

29,689

Solution 1

Try with the following two examples. I've found them useful in understanding how MVP might apply to Android applications.

http://web.archive.org/web/20120524010643/http://chicagoandroid.com/forum/topics/mvp-android-perspective

http://web.archive.org/web/20130525044856/http://jamespeckham.com/Blog/10-11-21/MVP_on_Android.aspx

Solution 2

Also Mosby implements an MVP pattern plus other things, but it is modular enough so that you can use only the MVP part and forget about the rest.

There is also a nice blog post covering the motivations and choices of this library

Solution 3

Check out the Android Developers page. There you will find the answers to all of your questions. And MVC is already present in Android. Check out this question. The videos here can explain what you're looking for.

Share:
29,689
Perry
Author by

Perry

I am now a full-time carer but until recently have been head of infrastructure and operations, a full stack software engineer and a devops engineer. With a wealth of technical skills and natural passion for technology I am also Microsoft certified. A lover of C# but not tied to exclusively the Microsoft stack and have enjoyed writing some cloud automation code in both Python and Node.js. Currently, I am a big fan of the .NET Core cross-platform development platform and am taking an interest in Blazor WebAssembly. I write code in Visual Studio Code, Sublime Text and the full Microsoft Visual Studio IDE. I also like to switch between macOS, Windows and Linux for development. I enjoy full stack development, devops and cloud-based work and am enjoying writing front end code in VueJS. Commercially I have worked with the Amazon Web Services stack and using various technologies have thrived in providing start-ups with a scalable continuous deployment architecture and delivered proof of concept, prototype applications and innovate software solutions.

Updated on September 23, 2020

Comments

  • Perry
    Perry over 3 years

    are there any good examples or tutorials on how best to structure an android applications anywhere?

    am new to java and android and i've built winforms apps using passive and supervising controller variants of model view presenter and model view controller in asp.net but not really seen any examples or code on android that use these sorts of patterns.

    how do people structure decent size android apps out there in the wild. are there any best practices or should i be sticking rigidly to official android documentation.