Questions tagged [mosby]

Mosby is a Model-View-Presenter (MVP) library for android apps.

More information about Mosby can be found on here

68 questions
0
votes
1 answer

Presenter: when to start async work with setRetainInstance(true) fragment

The only difference of retained instance in Fragment's lifecycle is that onCreate() don't calls. But at this state View isn't inflated yet. When must I call methods like loadNews() of Presenter of Fragment with setRetainInstance(true)? I want to…
Alexandr
  • 3,859
  • 5
  • 32
  • 56
0
votes
1 answer

Mosby, Conductor and Rx not playing well

I just started out a new Sample Project to test Conductor with Mosby. The problem is, after I navigate away from the FirstScreen or rotate the device, after Rx onNext callback, the isViewAttached() is returning always false, and I can't understand…
Leonardo
  • 3,141
  • 3
  • 31
  • 60
0
votes
2 answers

MVP: how to notify view about changes after de-attach

Let's imagine situation: User click on 'Login' button and Fragment(View) call Presenter's method doLogin(). Presenter starts some async work and now Boom! app is closed(moved to recent apps) Presenter survives and async work is still…
Alexandr
  • 3,859
  • 5
  • 32
  • 56
0
votes
1 answer

How to build and use Mosby library?

I try to add Mosby library to my pet project, but i cannot understand how to include it to project? I try to add mosby by add as module-> add as Gradle project, but it not compile. please, can you link me some tutorial how to add projects (source)…
Admiral Land
  • 2,304
  • 7
  • 43
  • 81
0
votes
1 answer

Mosby MVP - FragmentStatePagerAdapter - NPE

For my new app i want to use the Mosby Framework. At the moment i have an activity with two tabs and it works fine for my. Now i want to implement a new activity with 12 tabs and when i want to switch to a new tab i get a…
Tobias
  • 4,921
  • 4
  • 31
  • 40
-1
votes
1 answer

Make intents that needs more than one arguments?

In mosby and in examples, the intent methods in the view takes one argument at most. How do I pass more than 1 arguments to interactor through a presenter?
-1
votes
1 answer

Avoidng NPE using RxJava2 with Mosby

I've created an application using RxJava along with Retrofit and Mosby/Conductor. Now I have this question regarding view disposal and what goes with it. Consider the following code. public class IndexPresenter extends MvpBasePresenter
2hamed
  • 8,719
  • 13
  • 69
  • 112
-4
votes
1 answer

Android MVP application

I'm going to start a new android project, and I want to use clean architecture and MVP. I've been reading about this, and I've found the Mosby library, however, which are the benefits of using the Mosby library instead of using MVP without Mosby?…
FVod
  • 2,245
  • 5
  • 25
  • 52
1 2 3 4
5