Mvp Questions
Ad
NullPointerException when trying to test a void method in Presenter using Mockito
I'm trying to test my app with mockito. it is built using mvp pattern. this is my contract: public interface citiescontract {
How to test a void method within a Presenter using Mockito?
I have a very simple app built using mvp pattern. this is my contract: public interface citiescontract { interface view {
How can I use Repository
I use dagger2 and moxy with mvp. as i understand, presenter can call the repository for loading and unloading data from the database. but i just
Update progress bar - MVP pattern
I'm studying the mvp pattern but having a hard time following the principles in order to update in real time a progress bar. as i understand the
Should I refactor code for unit testing in mvp android?
I made an mvp application in kotlin and in each function of my presenter i call a view method so should i refactor my code for unit-testing or i
How to handle a custom ArrayAdapter in an Android MVP project?
I have an android mvp project. i want to keep out any android references out of the presenter. this way, i can keep ui separated in the
Kotlin MVP implementation issue with generics
Trying to implement a simple mvp structure with kotlin, here are my base classes: abstract class baseactivity<p :
How to implement a reusable multistep state-machine into MVP?
In my android app i have a multi step login procedure: enter a id, and send to backend: firstcall(id) if id
Data from database always returns Empty Array while using Room Library
I want ask about my code. error does not show when i insert data in the database, but when i try to getall i just get empty array. i don't know
Questions about the responsbilities of each component in Android Architecture Components
I've been using mvp for a long time now and i'm starting to transfer to a hybrid state between mvp and mvvm in detail my apps will go like
Ad
RxJava2 Android onNext is called even after disposing compositeDisposable onDestroy
Following is my code for adding observable to composite disposable
Is it a bad practice to have Context in MVP Model's constructor parameter?
I am trying to check internet connection using mvp pattern. for that i have a class myapputil which takes context in its
Firebase remote config Unit Test in Android MVP?
Is there any example about unit test of firebase remote config in android? below code in our presenter and we want to write unit test for
How to use Retrofit call.enqueue() method (the right way) when dealing with MVP pattern
I'm new to android and this is the first time trying to use mvp pattern in my code ... as i understand so far is that my view should talk to the
MVC vs MVP vs MVVM use cases
I am and android developer and i have worked on all of these three architecture patterns in my applications. also i have gone through several
android MVP pattern on memory leak
Currently i am using mvp pattern on android with contract. so in example my interactor is like this: interface maininteractor {
Getting error in DaggerApplicationComponent in MVP
I am trying to learn about mvp pattern and following one tutorial where i got this source code. applicationmodule
Kotlin Android MVP + Dagger 2 lateinit property presenter has not been initialized
Trying to use dagger with kotlin on android. and got the exception: caused by: kotlin.uninitializedpropertyaccessexception:
How to go to fragment from another fragment in mvp
First of all i new to mvp design pattern i have activity with two fragments, the activity have presenter handle logic with bottom
Android MVP - Share Preference
I started to learn mvp but i have a few questions related the sharedpreferences, as far as i know if i want to save a value in the
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
Ad
DatePickerDialog.OnDateSetListener() and MVP
I'm confused... i'm trying to learn mvp pattern and i have problem with implementation this in that code: mdatesetlistener = new
Package structure for MVP android project
So i have a project where i use mvp architecture. i have trouble deciding how to structure it. my idea is to separate them by feature but where
error: [Dagger/MissingBinding] [dagger.android.AndroidInjector.inject(T)] Dagger
I wanna to make a simple project with one main activity and multiple fragments. here i have two fragments at one activity and i want to inject
Android MVP - where should i read from Textview?
After a user clicks a button i want to read what's in the textviews of the activity and then call a method from the presenter to get a return
Android MVP Proper Way to Release Presenter
I am working with mvp architecture and i'm stuck on how to proper release the presenter. first, let me tell you guys what is happening.
How to switchMap after press button RxJava2
I study switchmap. the case is: 1) user press button 1 2) view calls presenter method getrecord (id), and send button id. 3) presenter subsribe on
Activity or Fragment as View on MVP
I'm trying to know which is the better implementation of the view on mvp. for example in small apps, it's better to use one or
Why do we use Base View and Base Presenter for MVP pattern?
In mvp (model view presenter) pattern using base view and presenter is common practice. can we omit them? and why do we use it at the first
How to retrieve data from firebase database without listening for events
Hello i am using firebase database for my android app.i have my data stored on firebase database and i want to get it whenever the fragment gets
Android NFC Reader in MVP - onNewIntent not firing
I have a working nfc reader/writer code. using the same code, i added the reader function in another app which is following mvp architecture.
Android MVP with view pager
I am trying to implement mvp in my android project. but i am getting difficulty when i implement mvp with viewpageradapter. to
Ad
MVP pattern temporary data storage
I am working on an application in which different screens need to load data from api. like there is a details screen that needs to load data from
Android MVP - Reuse shared data for multiple fragments
I'm building an android application using mvp. one of the screen displays data in a sort of master/detail view (a content page embedding a
iOS MVP data conversion responsibility
Let's say i have class with date property class somemodel { ..some properties let date: date =
How Do You Communicate Service Layer Messages/Errors to Higher Layers Using MVP?
I'm currently writing an asp.net app from the ui down. i'm implementing an mvp architecture because i'm sick of winforms and wanted something that
correct work with onActivityResult in MVP project
I try use mvp in my project and i get some question. for example i have mypresenter presenter; myfragment view;
Clean Architecture: Where to implement pagination logic?
There is a rest api where search keyword entered by the user is used to query and get results. sometimes, too many results are returned. i don't
Where should I put Core Location methods in a VIPER/MVP iOS project?
I searched a lot, i understand that the view controller is actually the "view" in the viper or mvp architecture and the presenter contains the
What are MVP and MVC and what is the difference?
When looking beyond the rad (drag-drop and configure)
How can inject Model to Presenter when create it wit dagger2?
I try create mvp + dagger2 i create model moudule: @module class modelsmodule {
Does the presenter having knowledge of the Activity / Context a bad idea in the MVP pattern?
I've been playing around with the mvp pattern for a few weeks now and i've come to the point where i need context to start a service
Ad
Blog Categories
Ad