mvp Questions

3

Solved

I'm using Retrofit, OK-HTTP and RxJava2 to handle network calls, I created below interceptor to handle the Network error response for each network calls, Is there a better way to Handle this? Is th...
Emplacement asked 2/3, 2018 at 3:51

2

Solved

I am learning MVP and got confused where and how should I implement onClickListener while not ruining mvp concept here. Followed this guide: https://android.jlelse.eu/recyclerview-in-mvp-passive-v...
Nibelungenlied asked 31/8, 2017 at 12:36

4

Solved

I'm trying to implement MVP without Dagger (for learning purposes). But I got to the problem - I use Repository patter to get raw data either from cache (Shared Preferences) or network: Shared Pre...

6

I have an activity with 3 fragments, currently I use ViewPager. I want to implement MVP and communicate between activity presenter and fragment presenters i.e: Passing data from activity presente...
Phrixus asked 19/4, 2016 at 3:0

2

Solved

In my project I use Retrofit and trying to use Dagger for injecting dependencies. I also have 2 Retrofit services with different APIs. I need to use 2 different APIs with different baseUrls at the ...
Ellipsoid asked 6/10, 2016 at 17:57

5

Solved

I´m starting to implement the MVP pattern on an Android project and I have some doubts about where I should validate the fields before doing any action. For example, If I have to send a form with...
Kaunas asked 22/4, 2016 at 7:35

2

Solved

I am trying to implement MVP in my android project. But I am getting difficulty when i implement MVP with viewPagerAdapter. To implement MVP, we used to create fragment/view and presenter instance ...
Huff asked 22/2, 2018 at 7:37

2

Solved

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 -> Lo...
Postgraduate asked 13/1, 2019 at 22:3

7

Solved

I try to understand what the best way is to program a "clean" Android app. I found an interesting article about it where they use a kind of a 3 layer architecture. Now I read that android uses the...
Illstarred asked 28/12, 2015 at 14:32

1

I have an application with MVP architectural pattern. Now, I am trying to implement Livedata in my application. I searched a lot , but I can not found any tutorial or example for this. All tutorial...
Eradis asked 21/6, 2018 at 0:55

6

Solved

I have a pretty good idea how each of these patterns work and know about some of the minor differences between them, but are they really all that different from each other? It seems to me that the...

6

Solved

I am new in android development.I want to implement MVP in my project but I don't know What are the advantages of using MVP SO Please tell me what are the advantages of using MVP in android.
Pawnbroker asked 23/11, 2016 at 13:45

1

I was trying to implement a way to decouple View and Presenter in the MVP pattern to provide a framework, which does exactly this, but after a point I got confused. Background I have a View inter...
Garvy asked 29/8, 2018 at 17:7

4

Solved

using MVP, what is the normal order of construction and dependency injection. normally you create a presenter for each view and pass the view into the presenter on constructor. But what if you hav...
Garry asked 9/10, 2008 at 20:41

2

In the MVP pattern who is responsible to handle clicks on the UI? E.g. the non-MVP approach would be something like: counterButton.setOnClickListener(new View.OnClickListener() { public void onC...
Gahan asked 13/7, 2016 at 19:48

2

I am using MVP pattern to build a small test android app. I have two fragments Fragment B (I am using for sliding drawer) and Fragment A (main fragment). Both fragments have their own presenters. w...
Mandeville asked 14/5, 2016 at 20:19

4

In my app I work with ContentProvider and use LoaderManager.LoaderCallbacks<Cursor>. Fragment (View) public class ArticleCatalogFragment extends BaseFragment implements ArticleCatalogPrese...
Anatase asked 11/8, 2015 at 20:40

2

Solved

The relationship between Model, View and Controller make me confused. This topic shows an arrow form View to Controller, an arrow from Controller to Model and an arrow from Model to View: http://...
Lavinalavine asked 12/3, 2015 at 8:47

4

Solved

In an attempt to entirely decouple the Android SDK from my presenter classes, I'm trying to figure out the best way to avoid accessing resource IDs which we normally use R for. I thought I could ju...
Squinch asked 11/9, 2014 at 17:57

7

I want to implement my next application with MVP pattern, so I started of reading some articles about how it should be implemented. The main problem for me is that there are different approaches to...
Bruno asked 24/7, 2014 at 9:54

2

Recently I took over an android project which is built on top of MVP. While simple screens are quite straight forward and easy to read and maintain, the more complex parts of the app are not. Multi...
Bactericide asked 16/3, 2018 at 10:19

1

Solved

I have an Android project which was built using the MVP architecture. One thing that I'm not quite sure of is that when I want to navigate to another activity after clicking on a button for example...
Kalinin asked 8/3, 2018 at 2:56

2

Solved

I am trying my hands on Dependancy Injection using Dagger2. It gives error in build phase and says cannot inject SharedPreference instance. Here are my modules and components. Application Module ...
Lowering asked 15/10, 2015 at 7:7

1

I have Recycler Viewer that displays data from Fire Base db however initial List contains around 4k elements. I am trying to show only first 15 elements instead of waiting for full list to be loade...

2

Solved

I'd like to know if I'm using Clean Architecture the right way. I am trying to lay it like this diagram: I've read that the package structure should be arranged by use case but I'm having difficul...
Mouser asked 23/10, 2017 at 7:59

© 2022 - 2024 — McMap. All rights reserved.