Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.