Model-View-Presenter: Android guidelines
Francesco Cervone

Hi Francesco Cervone. Thank you for the great article. I have recently started implementing my app components using the MVP architecture. I am following most of the guidelines that you mentioned in your post. I have been mostly following I was writing an app component where I had implemented two screens where I am implementing View using Fragments (say FragmentA and FragmentB). Now, I start my application using an Activity which first loads FragmentA. Now, based on a user action in this view, I want to replace the current fragment to FragmentB in the current activity. Which component should talk to the Activity in this case; the Presenter or the View (i.e. the Fragment)? Thank you for reading through.

Show your support

Clapping shows how much you appreciated Swapnil Gupta’s story.