Juan G Carmona
Juan G Carmona

Reputation: 2208

Architectures for RESTful Android Applications

I'm currently developing an Android application and I'd like to have an scalable architecture with a clean separation of concerns. The requirements of this application are, mainly:

First of all I'd like advices on how to separate classes inside the project, I mean, should I use folders (activity, model, DAL, service, sync...) or should I create my own libraries? (in .Net I'd create libraries with parent namespace)

My second and biggest concern is about user identity: how should looks like my architecture to achieve my goals? (sign up / Sign in with multiple providers, authenticated rest client and synchronization using SyncAdapter)

I hope you don bane this quiestion because maybe is too generic but I ask about all this stuff because I couldn't find information or advices about this stuff.

Thank you in advance.

Upvotes: 0

Views: 1804

Answers (1)

Marcel
Marcel

Reputation: 2184

This is a generic question and every dev has his own way to achieve this, but I would recommend to follow one of the trending patterns right now.

There is a project call the clean architecture. It has pretty much everything from dB to Api. In my opinion is a over-engineered.

I prefer another pattern called Flux.

Together with retrofit, eventbus or Otto makes building apps easy and keep the structure

You can read more about it here:

http://lgvalle.xyz/2015/08/04/flux-architecture/

Upvotes: 1

Related Questions