G
G
geron2015-09-17 20:27:55
Android
geron, 2015-09-17 20:27:55

Is it possible to share two patterns MVP and pattern A in one android application?

This is my first time developing apps for android. The application will "communicate" with the WEB service (REST). In the process of studying, I came across two patterns MVP and pattern A. Pattern A seems to cover my needs, since the application will mainly work with a REST service. But I understand that pattern A is not architectural, and I also need to develop a flexible application architecture, and MVP is suitable for this, hence several questions arose.
1-Is it possible to share two patterns MVP and pattern A in one android app?
2-If yes, how to do it (can I use an example, at least a picture)?
3-How many Presenter (representatives) can be in one application? and how much should be according to best practices?
4-How many Service-s are used in industrial android applications? what are the best practices?
5-Can a Service be a Presenter? if so, how many Services can be in the application in this case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Gamega, 2015-09-17
@gadfi

Perhaps they will throw tomatoes at me now, but I am more and more convinced that it is not necessary to make a web application from android.
If for the first time then use pattern A and don't worry. When arguing about best practices, many copies were broken ... things are still there.
For rest requests, I use a bunch of retrofit + gson ,
there are also a lot of disputes about asynchrony, I advise you to use something ready-made, for example , robospice for picasso
pictures

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question