Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android

José Eduardo Eguiguren
José Eduardo Eguiguren
17,555 Points

In the MVP design pattern, should the presenter be an Activity or a separate class?

In the latest version of the course "Build an Interactive Story app" Ben talks about the MVP pattern versus the MVC pattern. It's taught in the course that the MVP pattern should be structured as follows:

  • Model: The data model of the app
  • View: The layout files of an activity
  • Presenter: The activity itself

However based on some quick research I've seen that people associate the Activity as the View and the Presenter as a plain java class implementing the business logic. Even the links provided in the teacher notes on the course support that. I'm confused as to which way I should approach it.