All Questions
11 questions
2
votes
1
answer
507
views
Is it good approach to create new viewModel class for every new Ui(Fragment/Activity)?
I am working on a project in which I am following clean Architecture from Google ... and for making code testable I am following an approach in which,I am creating a new
ViewModel Class
ViewModel ...
1
vote
1
answer
2k
views
Do shared ViewModels contradict MVVM?
I want to follow the MVVM app architecture. I also need to have some communication between some fragments. But the official approach is pretty confusing.
Taken from the docs (https://developer....
12
votes
3
answers
17k
views
Should business logic be in the app or in the backend?
I've recently started applying the Clean Architecture while developing an Android application. And so I divided my application in 4 different parts.
Data layer
Contains the implementation of ...
4
votes
2
answers
4k
views
Clean Architecture: Apps that rely heavily on background services
I am trying to implement clean architecture (https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html) on an Android app.
As an example, let's say that all the app does is monitors a ...
1
vote
1
answer
2k
views
MVP: Should a View have multiple Presenters?
Is it desirable (from an architectural standpoint) to have more than one Presenter communicating with a View?
In my particular situation I have one presenter communicating with multiple views, and ...
3
votes
1
answer
357
views
Architecture recommendation for Android
Recently I developed an Android application which is very difficult to maintain. We are stuck in a complicated situation. We developed Android Apps which contained 500k LOC and another team developed ...
9
votes
1
answer
5k
views
In MVP pattern should the View instantiate a Model object based on UI contents, or just pass these contents as parameters to the Presenter?
I'm using MVP pattern in an android app that I'm developing.
I have basically 4 elements:
The AddUserView where a new user can be added:
The AddUserPresenter
The UserInfo (the pojo)
The ...
1
vote
0
answers
988
views
Handling multiple rest api versions within Android Java client
Actual architecture
I have an app where a model is attached to every activity. The model ask a repository for information that can come from server or local db depending on many factors. When it asks ...
70
votes
4
answers
59k
views
Uncle Bob's clean architecture - An entity/model class for each layer?
BACKGROUND :
I'm trying to use Uncle Bob's clean architecture in my android app. I studied many open source projects that are trying to show the right way to do it, and I found an interesting ...
4
votes
1
answer
2k
views
Decoupled architecture in Android
I am building an app for Android that will have multiple data sources depending on who is using it. N-tier architecture with a repository pattern seems like the right way to go about this but I am ...
4
votes
1
answer
294
views
Architectural problem for Activity communication in an Android app
I maintain an open source Flickr app Glimmr for Android. There is currently an architectural issue around pagination that I've been trying to solve for quite a while, and would appreciate ideas.
...