Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Single Activity by Example (Droidcon Italy 2019)

Single Activity by Example (Droidcon Italy 2019)

Slides for presentation given at Droidcon Italy 2019

Sample project here: https://github.com/remcomokveld/SingleActivity-DroidconIT

Avatar for remcomokveld

remcomokveld

April 04, 2019
Tweet

More Decks by remcomokveld

Other Decks in Technology

Transcript

  1. Disney Streaming Services –Twitter User “Until they really fix Backstack

    Management with fragments this is still going to be painful.” 4
  2. Disney Streaming Services –Twitter User “Big projects should be split

    up in feature modules, one Activity per feature.” 6
  3. Disney Streaming Services –Twitter User “Single activity makes it too

    easy to create spaghetti, that is likely going to be what you get. Multiple activities force you to decouple better.” 7
  4. Disney Streaming Services onCreate onCreateView onStart onResume First Transaction onPause

    onStop onDestroyView Second Transaction onCreate onCreateView onStart onResume
  5. Disney Streaming Services onCreate onCreateView onStart First Transaction onStop onDestroyView

    Second Transaction onCreate onCreateView onStart onResume onResume onPause
  6. Disney Streaming Services If a feature becomes too big, split

    your Fragment into multiple (child) Fragments 72