One of the most important questions which arise in my head when working with RecyclerViews (or any other adapter views for that matter) in passive view approach is how to handle accessing data.
Each time I work on a project that incorporates the MVP pattern in some way I always get my head arround the issue what goes where. As we all know a good programmer is the one who can propose good separation of concerns, so the code is readable and understandable by anyone.
Should I put it in presenter or the activity? Where should I manipulate this data that comes from our REST API?
(by the way, be sure to check out the post about mocking REST api responses)
Some time ago I had an opportunity to work on a project that utilized a REST API in Android app (No big deal, right?). The API unfortunately had only a basic implementation and there wasn’t any test environment endpoint, so the only place I could work on was the production endpoint. If there is a red light turning on inside your head right now — good, the same thing happened to me. …