3

I work with map in Android. So, I want to save state of some of my presenters to save data, when I leaved activity(not when rotate the screen). I can't find the solution besides singleton with ArrayList, but I would like to use already written solution. Thanks.

azizbekian
  • 60,783
  • 13
  • 169
  • 249
  • 1
    Checkout Mosby, Moxy, Nucleus & ThirtyInch & also feel free to go through all available ones in [Android Arsenal](https://android-arsenal.com/tag/163). Personally, I had used Mosby to create ViewState and save viewstate information. – blizzard Jan 11 '17 at 14:01
  • 1
    You can take a look at this sample project http://github.com/mmirhoseini/marvel and this article https://hackernoon.com/yet-another-mvp-article-part-1-lets-get-to-know-the-project-d3fd553b3e21 to get more familiar with MVP. – Mohsen Mirhoseini Jan 11 '17 at 20:04

1 Answers1

3

Checkout Android Boilerplate source code which uses Dependency Injection and persists presenters via Dagger Scopes.

azizbekian
  • 60,783
  • 13
  • 169
  • 249