Skip to content

Tag: mvp

Using coroutines in a right way

I am implementing the coroutine for first time. I am following MVP pattern for a simple login app. Here is my code flow – The login button clicked will follow this direction – LoginFragment -> LoginPresenter -> Repository -> APIRepository -> RetrofitInterface The login response will fo…

Android MVP – Calls the server

I started to learn MVP but I have a few questions related the communication between the Model and the Presenter, for example a login feature Activity will get all the fields, send to the presenter, the presenter will validate and if it’s everything as expected the presenter will call the model to send t…