java - Android good architecture -


i interested in exploring architectural patterns android applications.

i made several experiments viper , clean architecture approaches material/ideas investigate dear fellows.

here important points should reflected:

  1. it should handle routing/navigation in typical single activity/multiple fragments app

  2. it should separate components/layers run on background threads , on main thread , communicate between layers (observer pattern, eventbus or whatever)

  3. it uses limited amount of third party libraries , if please indicate pros , cons (like dagger dependency injection example)

  4. it helps mantaining orthogonality on long run while adapting/extending app. change in 1 module should affect minimum amount of components without having cascading effects because components thigh coupled.

  5. it great have real examples/prototypes on github or wherever keep real , practical without being on academic side ;-)

thanks in advance cool ideas/patterns

you can use mvp + repository pattern, using in project , code more cleaner, loosely couple, there separated layers. can add dagger dependency injections , rxandroid asynchronous task.

this best links found , helped me learn architecture:

http://fernandocejas.com/2014/09/03/architecting-android-the-clean-way/

https://medium.com/android-news/android-architecture-2f12e1c7d4db#.bupsk0o2n

https://medium.com/@artem_zin/m-model-from-mvc-mvp-in-android-flow-and-mortar-bd1e50c45395#.uyij0tjgs

http://fahimk.github.io/2015/04/21/using-rxjava-with-mvp-to-handle-configuration-changes/

https://kmangutov.wordpress.com/2015/03/28/android-mvp-consuming-restful-apis/

https://github.com/sam33rdhakal/mvpandroid/tree/master/app/src/main/java/com/enepalichords/nepalichords

http://magenic.com/blog/post/6/an-mvp-pattern-for-android

you can find code in above links , 1 of projects used learning purposes :

https://bitbucket.org/emaleavil/cheapshark/

there many things improve think can start, project unfinished, i'm sorry.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -