Android MVP Architecture tutorial With A demo Application ( Modal View Presenter )

Поделиться
HTML-код
  • Опубликовано: 24 янв 2019
  • What are Modal View Presente - Modal View Presenter is an android architecture which is designed for the architectural pattern to facilitate automated unit testing and improve separation of concern.
    For additional help/customization and tasks reach me via.
    www.fiverr.com/share/ADdzzR
    In Modal View Presenter MVP. Modal Interacts with the database, View Display Data to and Interacts with the users and Presenter Performs the logic.
    In this tutorial you will learn how to work with modal view presenter which is a design pattern ..
    Some of the advantages of Modal View Presenter are:
    1. Clear separation of responsibilities between components.
    2. Easy testing since there is well known boundaries
    IF you are not subscribed kindly hit subscribe button below.
    If you have question feel free to comment below

Комментарии • 33

  • @larntech20
    @larntech20  4 года назад

    Thanks for watching.
    Subscribe for more tutorials # ​bit.ly/larntech
    For any clarification or question feel free to comment below.

  • @sudarshanthite5937
    @sudarshanthite5937 2 года назад

    Nice, quick understanding of MVP.

    • @larntech20
      @larntech20  2 года назад

      Thanks, stay subs for more tutorials

  • @harisibrahimovic1991
    @harisibrahimovic1991 3 года назад

    Great video. Thank you!

  • @rodrickngonyoku5042
    @rodrickngonyoku5042 4 года назад

    Thanks for the heads up.

  • @AmandeepKaur-qg2re
    @AmandeepKaur-qg2re 2 года назад

    great learning point me 😊😊 please keep it more videos like this.Thankuu for helping.

  • @gauravnere4951
    @gauravnere4951 4 года назад +8

    Nice tutorial thank you. suggestion : I think validation of user input is empty or not should be check in model. based on that onError or onFailed method should be invoked.

    • @larntech20
      @larntech20  4 года назад

      Hello Nere, thank you for suggestion. i think you can do both check to prevent processing empty data. Thanks

    • @DeLL116
      @DeLL116 4 года назад +2

      I agree with Gaurav... The point of MVP is to remove business logic from Activity / Fragment.
      All the error handling you're doing in login_btn onClickListener should be moved to the Presenter.
      You should construct a data model from strings derived from the EditTexts and pass that data model to Presenter.doLogin().
      Presenter can do the error checks on the strings in the data model and call View.onError (which calls back to the Activity.onError() in this usage) if the strings don't pass business requirements validation rules.

    • @osmangokturk5154
      @osmangokturk5154 2 года назад

      still not updated! common, this is very important for new learners. they should see flawless stuff.
      I will put my appreciation here not to endanger my concerns. So, thanks a lot for this simple, clear example. I was not able to find an example on RUclips, but yours. So please update this video.
      Also, is it the standard way to declare 2 sub-Interfaces inside the interface, View,and Presenter? Because the other class with the Presenter name is implementing the Presenter sub-Interface and using an instance of View sub-Interface.

  • @salahshms
    @salahshms Год назад

    thanks dear good and short tutorial i enjoy and learn from you

    • @larntech20
      @larntech20  Год назад

      Welcome, am opening and online coding program. If you would be interested kindly email me at larntech20@gmail.com. Thanks

  • @kilo.ironblossom
    @kilo.ironblossom 2 года назад +2

    Good coding tutorial.
    FYI its Model-View-Presenter (MVP), not Modal. Someone coming from a Front-end background might get confused.

    • @larntech20
      @larntech20  2 года назад +1

      Thanks for that collection

  • @mashkarharis3886
    @mashkarharis3886 3 года назад

    Great Video 👍

  • @fanysoft
    @fanysoft 3 года назад +3

    thanks, anyway me as viewer would appreciate if you always say what you are trying to do, not just start coding. For example what is Contract and why do you need it, someone without such background will be totally lost here

  • @arsalanchishti5105
    @arsalanchishti5105 5 лет назад

    larntech website not wroking. but very good tutorial thanks (y)

    • @larntech20
      @larntech20  4 года назад

      Sorry for thank, kindly check out the following larntech.net/

  • @xuanatluu12
    @xuanatluu12 3 года назад

    thanhk thank bro!!!!

  • @user-ys6er9qh5g
    @user-ys6er9qh5g Год назад

    why is the sound quality so bad in such videos?

    • @larntech20
      @larntech20  Год назад

      Sorry for that, please our other videos for better voice quality.

  • @DOMMYEXPERIMENTAL
    @DOMMYEXPERIMENTAL 5 лет назад +2

    Nice tutorial! But what exactly is the model in this example?

    • @TamTran-oi7xe
      @TamTran-oi7xe 4 года назад

      I also confuse where is Model class.

    • @Chekist2008
      @Chekist2008 4 года назад

      It's not "ModEl-View-Presenter", it's "ModAl View-Presenter" :D :D

    • @bhaskarr6400
      @bhaskarr6400 4 года назад

      As he not doing any database or online data fetch operations.. so he is not creating any data model classes I guess

    • @jonhvellir2550
      @jonhvellir2550 3 года назад

      The model is supposed to store the values of the username and the password but he did not create one

    • @larntech20
      @larntech20  3 года назад

      Hi, kindly check updated video with model.
      ruclips.net/video/E7pQ4zYX4RQ/видео.html