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 Build an Interactive Story App The Model-View-Presenter Pattern What is Model-View-Presenter (MVP)?

hassan rawashdeh
hassan rawashdeh
Courses Plus Student 925 Points

what the activity role, is it presenter or view

i still dont get the exact difference between presenter and view.

in the video at "time 2:10"you state that the presenter is the activity but yet in your resouces http://konmik.com/post/introduction_to_model_view_presenter_on_android/ say that activity is the view , and i believe that activity is much closer to activity than any thing else. it is viewing the data .

2 Answers

Charles-Antoine Francisco
Charles-Antoine Francisco
27,426 Points

In this course, the Activity is the Presenter.

There is another version of MVP that separates the Activity and the Presenter.

See this article for more explanation: MVP Design Pattern

Part Description Where
Model What to display Data
View How it’s displayed Activity
Presenter Handling events Presenter
Melodie 1
Melodie 1
3,931 Points

The activity is the presenter and the layout is the view