Model View Presenter (MVP) in Android, Part 1

You may also like...

22 Responses

  1. Gopalan R C says:

    Good article. Eagerly waiting to read the next article.

  2. mr_dsw says:

    thank you

  3. vhsoni says:

    Good article. Waiting for the MVP implementation.

  4. Esmores says:

    Great article and love the diagrams. Hoping to adopt this into my projects.

  5. youngchan says:

    it’s very good article.
    can i tanslate your post to korean in my blog?

  6. Ted says:

    Hello TINMEGALI, Thank you for your nice article.
    i have translated part 1 in my blog.
    this is the link:
    http://tedcoder.com/2016/03/14/model-view-presenter-android-part-1/

  7. DanV says:

    Hi,
    Can you please add testing for the MainActivity and the GenericMVPActivity?

    Thank you!

    • tinmegali@gmail.com says:

      Hey DanV. I’m writing a new article about testing. I’ll talk about all kinds of tests, including Activity tests. It will be published this weekend. best regards

  8. youngchan says:

    Translated to Korean.

    link : http://tiii.tistory.com/24
    Thank you.

  9. Mark Schumacher says:

    Hey , what is the point of all the interfaces. The only one I see that is needed is Presenter->View, and the only reason this is necessary is so that we can test without reliance on the android framework. All other interfaces seem kind of seem like overhead. We almost never hot swap between implementations of our presenters / models. The public API for non-android classes are mockable without interfaces.

    Thoughts?

  10. Chris says:

    Nice article.

    You can also check this out AndroidMvc/Mvp framework

    https://github.com/kejunxia/AndroidMvc

    Also check out the MVP sample here https://github.com/kejunxia/AndroidMvc/tree/master/samples/simple-mvp

  11. There are many implementations of MVP, but not all of them designate Activities and Fragments as views. I personally believe, that Activities and Fragments should not contain UI logic at all.
    My thoughts on the subject are described in this post: http://www.techyourchance.com/activities-android/
    Alternative implementation of MVP, where Activities and Fragments are presenters, is described here: http://www.techyourchance.com/mvp-mvc-android-1/

  12. kivee says:

    Finally something worth reading. Thanks

  1. 17 de March de 2016

    […] Model View Presenter (MVP) in Android (part 1) […]

  2. 8 de April de 2016

    […] Model View Presenter (MVP) in Android, Part 1 […]

  3. 6 de September de 2016

    […] Model View Presenter (MVP) in Android, Part 1 […]

  4. 19 de January de 2017

    […] basics covered, delving into some examples can be a great place to start. Tin Megali’s article “Model View Presenter (MVP) in Android” breaks down a simple MVP architecture step by step. It starts with some basic information […]

Leave a Reply

Your email address will not be published. Required fields are marked *