Vasiliy Zukanov
Sep 4, 2018 · 1 min read

All the problems you wrote about are real and I totally agree that we should delegate as much as possible out of Activities and Fragments.

However, I can’t agree with this:

With the latest trend of using single Activity apps, the Activity should have a very simple purpose: hosting the UI.

The only natural responsibility of Activities and Fragments is to handle lifecycle. You simply wouldn’t need them otherwise.

Therefore, UI logic should be extracted out of Activities and Fragments as well.

I discussed this exact issue during my latest talk at Droidcon Berlin this year.

    Vasiliy Zukanov

    Written by

    Software development consultant, freelance developer and blogger at www.techyourchance.com.