From the course: Android App Development: Design Patterns for Mobile Architecture

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Create presenter, part 2

Create presenter, part 2 - Android Tutorial

From the course: Android App Development: Design Patterns for Mobile Architecture

Start my 1-month free trial

Create presenter, part 2

- [Instructor] We're now ready to move our details activity over to the MVP architecture So let's go ahead into the activity. Go ahead and clean up our work area, collapse this panel, and in here I know I'm going to be removing this part and I'll just say it's a private spy details presenter. I'll have to put it out. Presenter. Alt enter on this, we'll just make that new class. Come back to here and we changed this method name before, let's go ahead and change it again. Attach ui. I'd shift that six to do a rename refactor. And we're going to start doing some different things within here. We'll say that when we are given that presenter, we'll then set up from it so I'll make a public void, and I'll say just configure. And with that I'll say that is says spy details presenter. And I'll say spy details presenter and we'll say presenter is equal to spy details presenter. In fact, we'll just call this the presenter too. And then this .presenter.configurewithcontext. And this will help us…

Contents