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

hassan rawashdeh
PLUS
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